This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/12539] need a way to atomically set FD_CLOEXEC on fds transferred via SCM_RIGHTS
- From: "eblake at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 4 Mar 2011 17:09:31 +0000
- Subject: [Bug libc/12539] need a way to atomically set FD_CLOEXEC on fds transferred via SCM_RIGHTS
- Auto-submitted: auto-generated
- References: <bug-12539-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12539
--- Comment #2 from Eric Blake <eblake at redhat dot com> 2011-03-04 17:09:16 UTC ---
Since 'man recvmsg' doesn't describe SCM_RIGHTS (other than the one mention of
the term in MSG_CMSG_CLOEXEC), and 'man csmg' didn't discuss MSG_CMSG_CLOEXEC,
I hadn't put two and two together. Thanks for correcting me, and glad to know
it already exists.
Hmm, that means I should open a bug against the man-pages project. 'man cmsg'
only talks about SCM_RIGHTS creating descriptors as if by dup(2), but it should
also discuss that the addition of the MSG_CMSG_CLOEXEC flags can create
descriptors as if by fcntl(,F_DUPFD_CLOEXEC,0) instead.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.