diff options
-rw-r--r-- | src/libstddjb/child_spawn1_internal.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)]) ; |