libfuse: set close-on-exec flag on pipe file descriptors
commitfd7f25b62734ecdb63ed59001ef69a1a34edc4b4
authorEric Wong <normalperson@yhbt.net>
Wed, 6 Feb 2013 09:51:40 +0000 (6 09:51 +0000)
committerMiklos Szeredi <mszeredi@suse.cz>
Wed, 6 Feb 2013 15:30:47 +0000 (6 16:30 +0100)
tree9a09af6e706b04932c805f090e406059ae516587
parenteca08beaf5a7b4121da27c2a927a6ecbb08a74bf
libfuse: set close-on-exec flag on pipe file descriptors

The FUSE library may be used from any number of programs which
may also fork() + execve(), so set the close-on-exec flag to
avoid inadvertant leakage of pipe file descriptors.

While we're at it, attempt to use pipe2() since this is within a
(currently) Linux-only code path and pipe2() offers thread-safety.
ChangeLog
configure.ac
lib/fuse_lowlevel.c