summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-21 19:09:00 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-21 19:09:00 +0000
commit1fbc3336a593e7b34420172efbe81f0f4aa65ad3 (patch)
tree8a10ed3f4513489c622c2638322d77bbf06fa11a /src
parentb8b5d27a138f32c6e400932fa8828a380a03d1d7 (diff)
downloadskalibs-1fbc3336a593e7b34420172efbe81f0f4aa65ad3.tar.xz
child_spawn1_internal fix for noposixspawn
Diffstat (limited to 'src')
-rw-r--r--src/libstddjb/child_spawn1_internal.c2
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)]) ;