From 1fbc3336a593e7b34420172efbe81f0f4aa65ad3 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 21 Dec 2014 19:09:00 +0000 Subject: child_spawn1_internal fix for noposixspawn --- src/libstddjb/child_spawn1_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libstddjb/child_spawn1_internal.c b/src/libstddjb/child_spawn1_internal.c index b004d7e..2ce2ac3 100644 --- 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)]) ; -- cgit v1.2.3