summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libstddjb/child_spawn0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/child_spawn0.c b/src/libstddjb/child_spawn0.c
index bb8b29e..d1eddba 100644
--- a/src/libstddjb/child_spawn0.c
+++ b/src/libstddjb/child_spawn0.c
@@ -64,7 +64,7 @@ pid_t child_spawn0 (char const *prog, char const *const *argv, char const *const
errno = e ;
return 0 ;
}
- if (pid)
+ if (!pid)
{
fd_close(p[0]) ;
sig_blocknone() ;