Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Apr 2015 10:13:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 199801] libfetch should use option letter "e" with fopen() to force O_CLOEXEC instead of calling fcntl() later
Message-ID:  <bug-199801-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199801

            Bug ID: 199801
           Summary: libfetch should use option letter "e" with fopen() to
                    force O_CLOEXEC instead of calling fcntl() later
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: jau@iki.fi

Created attachment 156132
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=156132&action=edit
Add "e" to fopen() options and remove the fcntl() calls.

There are a couple of pointless calls to fcntl() in libfetch
to set FD_CLOEXEC where the easier and more robust approach
would be adding the option letter "e" to fopen() options to
force O_CLOEXEC already at the time of 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-199801-8>