passfd module, part 3.
authorBastien Roucariès <roucaries.bastien@gmail.com>
Sun, 13 Mar 2011 15:36:30 +0000 (16:36 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 13 Mar 2011 16:14:12 +0000 (17:14 +0100)
commit5d16175c8eb25176fdd3aca576eca995579d5145
tree0d4df303d796406d0d228463d01cbf39e6889088
parentc18d3b0d509d2636fe6c8f4f19eda17031041206
passfd module, part 3.

* lib/passfd.h (recvfd): Add a flags argument.
* lib/passfd.c: Include <fcntl.h>, cloexec.h.
(recvfd): Add a flags argument.
* m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
exists.
* modules/passfd (Depends-on): Add cloexec.
Suggested by Eric Blake.
ChangeLog
lib/passfd.c
lib/passfd.h
m4/afunix.m4
modules/passfd