diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-18 21:08:14 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-18 21:08:14 +0000 |
commit | c61359571fd3549ed69cd2e3b80e31bc9f9f0514 (patch) | |
tree | 1aa92331ed7dcf54f0c6a25fdff00d3c74664ee8 /src/libstddjb/child_spawn1_socket.c | |
parent | eabd95d0385c9600ed5b75d37398498c19f64d9d (diff) | |
download | skalibs-c61359571fd3549ed69cd2e3b80e31bc9f9f0514.tar.xz |
Fix fd management in new child_spawn1, make socket nb for skaclient
Diffstat (limited to 'src/libstddjb/child_spawn1_socket.c')
-rw-r--r-- | src/libstddjb/child_spawn1_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/child_spawn1_socket.c b/src/libstddjb/child_spawn1_socket.c index 46c900f..7263ff6 100644 --- a/src/libstddjb/child_spawn1_socket.c +++ b/src/libstddjb/child_spawn1_socket.c @@ -9,7 +9,7 @@ pid_t child_spawn1_socket (char const *prog, char const *const *argv, char const pid_t pid ; int p[2] ; if (ipc_pair_b(p) < 0) return 0 ; - pid = child_spawn1_internal(prog, argv, envp, p, 1) ; + pid = child_spawn1_internal(prog, argv, envp, p, 3) ; if (!pid) return 0 ; *fd = p[0] ; return pid ; |