summaryrefslogtreecommitdiff
path: root/src/libexecline
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-09-09 10:41:49 +0000
committerLaurent Bercot <ska@appnovation.com>2023-09-09 10:41:49 +0000
commit3ed0734b7638b56fe479957f81299f79c90861e6 (patch)
treebc047ef9bba99c5ca998e1bc9cc543f880d6b436 /src/libexecline
parent1b68dca6beeb71d55522289f82541603cb340310 (diff)
downloadexecline-3ed0734b7638b56fe479957f81299f79c90861e6.tar.xz
Adapt to skalibs-2.14
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libexecline')
-rw-r--r--src/libexecline/el_spawn0.c6
-rw-r--r--src/libexecline/el_spawn1.c3
2 files changed, 5 insertions, 4 deletions
diff --git a/src/libexecline/el_spawn0.c b/src/libexecline/el_spawn0.c
index 0cfe017..d4265a4 100644
--- a/src/libexecline/el_spawn0.c
+++ b/src/libexecline/el_spawn0.c
@@ -1,6 +1,6 @@
/* ISC license. */
-#include <skalibs/djbunix.h>
+#include <skalibs/cspawn.h>
#include <execline/config.h>
#include <execline/execline.h>
@@ -10,7 +10,7 @@ pid_t el_spawn0 (char const *prog, char const *const *argv, char const *const *e
if (!argv[0])
{
static char const *const newargv[3] = { EXECLINE_BINPREFIX "exit", "0", 0 } ;
- return child_spawn0(newargv[0], newargv, 0) ;
+ return cspawn(newargv[0], newargv, envp, 0, 0, 0) ;
}
- else return child_spawn0(prog, argv, envp) ;
+ else return cspawn(prog, argv, envp, 0, 0, 00) ;
}
diff --git a/src/libexecline/el_spawn1.c b/src/libexecline/el_spawn1.c
index 937f1a3..d9a7f87 100644
--- a/src/libexecline/el_spawn1.c
+++ b/src/libexecline/el_spawn1.c
@@ -1,6 +1,7 @@
/* ISC license. */
-#include <skalibs/djbunix.h>
+#include <skalibs/cspawn.h>
+
#include <execline/config.h>
#include <execline/execline.h>