Files
findutils/lib
James Youngman a44cece85b Fix Savannah bug #29435: fd_is_cloexec does not work on Fedora buildhosts.
Fix open_cloexec on hosts which ignore O_CLOEXEC (i.e. old kernels).
* lib/fdleak.c (o_cloexec_works): New function, detects whether
the open flag O_CLOEXEC has any effect.
(open_cloexec): Call o_cloexec_works, just once, to find out
whether O_CLOEXEC is effective.  If not, set the close-on-exec
flag on fds by calling set_cloexec_flag.

Signed-off-by: James Youngman <jay@gnu.org>

Signed-off-by: James Youngman <jay@gnu.org>
2010-04-04 12:07:15 +01:00
..
2010-04-03 12:22:57 +01:00
2010-04-03 12:22:57 +01:00
2010-04-03 12:22:57 +01:00
2010-04-03 12:22:57 +01:00
2010-04-03 12:22:57 +01:00
2010-04-03 12:22:57 +01:00
2010-04-03 12:22:57 +01:00
2010-04-03 12:22:57 +01:00
2010-04-03 12:22:57 +01:00
2010-04-03 12:22:57 +01:00
2010-04-03 12:22:57 +01:00
2010-04-03 12:22:57 +01:00
2010-04-03 12:22:57 +01:00