summaryrefslogtreecommitdiff
path: root/src/libstddjb/child_spawn0.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-04-22 14:57:16 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-04-22 14:57:16 +0000
commit2dc76616b2b0884f0203cf36b58f94c5656c0c81 (patch)
tree4e96dd14d20a7d652d35df84224c573fbfb9ff7e /src/libstddjb/child_spawn0.c
parentf6d5fcfa0fa2a62f9583fa44dbee035c0adfcc88 (diff)
downloadskalibs-2dc76616b2b0884f0203cf36b58f94c5656c0c81.tar.xz
Bugfix: exec the child when not SKALIBS_HASPOSIXSPAWN in child_spawn0 (thanks eto)
Diffstat (limited to 'src/libstddjb/child_spawn0.c')
-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() ;