From 2dc76616b2b0884f0203cf36b58f94c5656c0c81 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 22 Apr 2016 14:57:16 +0000 Subject: Bugfix: exec the child when not SKALIBS_HASPOSIXSPAWN in child_spawn0 (thanks eto) --- src/libstddjb/child_spawn0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() ; -- cgit v1.2.3