summaryrefslogtreecommitdiff
path: root/src/libstddjb/child_spawn2.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-09-14 22:38:28 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-09-14 22:38:28 +0000
commitf7e8333c60883a93e3fd3eb52d761868b3234bf4 (patch)
tree27f225f997a8c5207fa805d1c9827c8dbf7746be /src/libstddjb/child_spawn2.c
parentfb51953404b6ae56528294c7a40ad956b054abef (diff)
downloadskalibs-f7e8333c60883a93e3fd3eb52d761868b3234bf4.tar.xz
bugfix: child_spawn2 error path
Diffstat (limited to 'src/libstddjb/child_spawn2.c')
-rw-r--r--src/libstddjb/child_spawn2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/child_spawn2.c b/src/libstddjb/child_spawn2.c
index 01f144d..244d09b 100644
--- a/src/libstddjb/child_spawn2.c
+++ b/src/libstddjb/child_spawn2.c
@@ -40,7 +40,7 @@ pid_t child_spawn2 (char const *prog, char const *const *argv, char const *const
int e ;
if (pipe(p[0]) < 0) return 0 ;
if (ndelay_on(p[0][0]) < 0 || coe(p[0][0]) < 0 || pipe(p[1]) < 0) { e = errno ; goto errp ; }
- if (ndelay_on(p[1][1]) < 0 || coe(p[1][1]) < 0) { e = errno ; goto errsp ; }
+ if (ndelay_on(p[1][1]) < 0 || coe(p[1][1]) < 0) { e = errno ; goto errp1 ; }
#ifdef SKALIBS_HASPOSIXSPAWN