socket_wrapper Cope with SOCK_CLOEXEC and SOCK_NONBLOCK flags
authorAndrew Bartlett <abartlet@samba.org>
Thu, 4 Jun 2009 04:14:14 +0000 (14:14 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 4 Jun 2009 04:19:17 +0000 (14:19 +1000)
commit4c70a5b405d2ee6b8a47118fd731a0fb64dda2ff
treeed707a68f5926b664d268db52133a5148be371d2
parentdfd56dd29415b06b5ea137f8c333da42e8ff1aa6
socket_wrapper Cope with SOCK_CLOEXEC and SOCK_NONBLOCK flags

Heimdal will, on supporting systems, set these flags in the type
argument of socket(), causing breakage when combined with
socket_wrapper.

For background on these flags, see http://lwn.net/Articles/281965/

Andrew Bartlett
lib/socket_wrapper/socket_wrapper.c