Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102614873
D31344.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
843 B
Referenced Files
None
Subscribers
None
D31344.diff
View Options
diff --git a/lib/libc/x86/sys/__vdso_gettc.c b/lib/libc/x86/sys/__vdso_gettc.c
--- a/lib/libc/x86/sys/__vdso_gettc.c
+++ b/lib/libc/x86/sys/__vdso_gettc.c
@@ -230,7 +230,7 @@
* triggering trap_enocap on the device open by absolute path.
*/
if ((cap_getmode(&mode) == 0 && mode != 0) ||
- (fd = _open(devname, O_RDONLY)) == -1) {
+ (fd = _open(devname, O_RDONLY | O_CLOEXEC)) == -1) {
/* Prevent the caller from re-entering. */
atomic_cmpset_rel_ptr((volatile uintptr_t *)&hpet_dev_map[u],
(uintptr_t)old_map, (uintptr_t)MAP_FAILED);
@@ -266,7 +266,7 @@
if (cap_getmode(&mode) == 0 && mode != 0)
goto fail;
- fd = _open(HYPERV_REFTSC_DEVPATH, O_RDONLY);
+ fd = _open(HYPERV_REFTSC_DEVPATH, O_RDONLY | O_CLOEXEC);
if (fd < 0)
goto fail;
hyperv_ref_tsc = mmap(NULL, sizeof(*hyperv_ref_tsc), PROT_READ,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 15, 8:18 PM (19 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14647339
Default Alt Text
D31344.diff (843 B)
Attached To
Mode
D31344: x86 __vdso_gettc: add O_CLOEXEC flag to open
Attached
Detach File
Event Timeline
Log In to Comment