Date: Thu, 30 Apr 2015 13:34:08 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 199810] libdtrace should probably use O_CLOEXEC while calling open() instead of setting FD_CLOEXEC using fcntl() Message-ID: <bug-199810-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199810 Bug ID: 199810 Summary: libdtrace should probably use O_CLOEXEC while calling open() instead of setting FD_CLOEXEC using fcntl() Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: jau@iki.fi Created attachment 156148 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=156148&action=edit A patch to add the appropriate O_CLOEXEC flags and to remove the fcntl() calls The same report applies to both 11.0-CURRENT and 10.1-STABLE. In libdtrace there are a few calls to fcntl() to set FD_CLOEXEC for file descriptors for which the easier and more robust approach would be setting O_CLOEXEC already when calling open(). -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-199810-8>