Hash :
d8ccc13b
Author :
Date :
2009-12-04T22:10:44
cloexec: add dup_cloexec This is needed to enforce correct semantics of mkostemp_safer. Meanwhile, it is one step closer to providing O_CLOEXEC support to open, as well as implementing portions of fcntl for mingw. * lib/cloexec.h (dup_cloexec): New prototype. Add copyright header and comments. * lib/cloexec.c (set_cloexec_flag): Add comments. (dup_cloexec): New function, with mingw implementation borrowed from... * lib/w32spawn.h (dup_noinherit): ...here. * modules/execute (Depends-on): Add cloexec. * modules/pipe (Depends-on): Likewise. * modules/cloexec (Depends-on): Add dup2. * modules/cloexec-tests (Files): New file. * tests/test-cloexec.c: Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
Description:
Creation of autonomous subprocesses.
Files:
lib/execute.h
lib/execute.c
lib/w32spawn.h
m4/execute.m4
Depends-on:
cloexec
dup2
error
exit
fatal-signal
wait-process
gettext-h
spawn
posix_spawnp
posix_spawn_file_actions_init
posix_spawn_file_actions_addopen
posix_spawn_file_actions_destroy
posix_spawnattr_init
posix_spawnattr_setsigmask
posix_spawnattr_setflags
posix_spawnattr_destroy
stdbool
strpbrk
unistd
environ
configure.ac:
gl_EXECUTE
Makefile.am:
lib_SOURCES += execute.h execute.c w32spawn.h
Include:
"execute.h"
License:
GPL
Maintainer:
Bruno Haible