summaryrefslogtreecommitdiff
path: root/src/libstddjb/child_spawn.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-05-05 12:50:24 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-05-05 12:50:24 +0000
commit7d06701bfaad445e48832ba4fd189ffc36e34387 (patch)
treec3d0d5da0d9328d950a4da4cc3a4f9d84a3e7033 /src/libstddjb/child_spawn.c
parent73ebb5709dc2a5aaee1e676a3c1b0bb7cebcd392 (diff)
downloadskalibs-7d06701bfaad445e48832ba4fd189ffc36e34387.tar.xz
- add stat_at
- make case_diff* work as a function is more cases - make sig_number case-insensitive - make child signal unblocking work in child_spawn*
Diffstat (limited to 'src/libstddjb/child_spawn.c')
-rw-r--r--src/libstddjb/child_spawn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstddjb/child_spawn.c b/src/libstddjb/child_spawn.c
index 922c777..18cee96 100644
--- a/src/libstddjb/child_spawn.c
+++ b/src/libstddjb/child_spawn.c
@@ -75,8 +75,7 @@ pid_t child_spawn (char const *prog, char const *const *argv, char const *const
sigemptyset(&set) ;
e = posix_spawnattr_setsigmask(&attr, &set) ;
if (e) goto errattr ;
- sigfillset(&set) ;
- e = posix_spawnattr_setsigdefault(&attr, &set) ;
+ e = posix_spawnattr_setflags(&attr, POSIX_SPAWN_SETSIGMASK) ;
if (e) goto errattr ;
}
e = posix_spawn_file_actions_init(&actions) ;