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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to