summaryrefslogtreecommitdiff
path: root/src/libexecline/el_execsequence.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexecline/el_execsequence.c')
-rw-r--r--src/libexecline/el_execsequence.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libexecline/el_execsequence.c b/src/libexecline/el_execsequence.c
index 797aeb5..debf527 100644
--- a/src/libexecline/el_execsequence.c
+++ b/src/libexecline/el_execsequence.c
@@ -3,10 +3,11 @@
#include <string.h>
#include <unistd.h>
-#include <skalibs/djbunix.h>
-#include <skalibs/env.h>
-#include <skalibs/strerr2.h>
#include <skalibs/types.h>
+#include <skalibs/strerr2.h>
+#include <skalibs/djbunix.h>
+#include <skalibs/exec.h>
+
#include <execline/execline.h>
void el_execsequence (char const *const *argv1, char const *const *argv2, char const *const *envp)
@@ -28,6 +29,5 @@ void el_execsequence (char const *const *argv1, char const *const *argv2, char c
j += uint_fmt(fmt + j, wait_status(wstat)) ;
}
fmt[j++] = 0 ;
- if (!argv2[0]) _exit(0) ;
- xpathexec_r(argv2, envp, env_len(envp), fmt, j) ;
+ xmexec0_en(argv2, envp, fmt, j, 1) ;
}