[Bug 199810] libdtrace should probably use O_CLOEXEC while calling open() instead of setting FD_CLOEXEC using fcntl()

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Apr 30 13:34:08 UTC 2015


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 at FreeBSD.org
          Reporter: jau at 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.


More information about the freebsd-bugs mailing list