commit 1fbc3336a593e7b34420172efbe81f0f4aa65ad3 parent b8b5d27a138f32c6e400932fa8828a380a03d1d7 Author: Laurent Bercot <ska-skaware@skarnet.org> Date: Sun, 21 Dec 2014 19:09:00 +0000 child_spawn1_internal fix for noposixspawn Diffstat:
M | src/libstddjb/child_spawn1_internal.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libstddjb/child_spawn1_internal.c b/src/libstddjb/child_spawn1_internal.c @@ -91,7 +91,7 @@ pid_t child_spawn1_internal (char const *prog, char const *const *argv, char con errno = e ; return 0 ; } - if (pid) + if (!pid) { fd_close(syncp[0]) ; fd_close(p[!(to & 1)]) ;