This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/12539] need a way to atomically set FD_CLOEXEC on fds transferred via SCM_RIGHTS


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]