]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
x86 __vdso_gettc: add O_CLOEXEC flag to open
authorKonstantin Belousov <kib@FreeBSD.org>
Thu, 29 Jul 2021 01:26:38 +0000 (04:26 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Thu, 29 Jul 2021 15:01:24 +0000 (18:01 +0300)
commitcbf6f55e77a9176572830a20804cf1d005dfea73
tree756f06231bf0df48af2f6173e86927978677adaa
parent4b136ef259cefedc9b6404afc09138aeb8acbd91
x86 __vdso_gettc: add O_CLOEXEC flag to open

of the /dev/hpet and /dev/hv_tsc devices, to not leak internal libc
filedescriptors on exec.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D31344
lib/libc/x86/sys/__vdso_gettc.c