diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2024-11-06 08:05:33 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2024-11-06 08:05:33 +0000 |
commit | 3d91d9ce645efa020800b85be1ac2727ebcbad19 (patch) | |
tree | 4461d2c99abfb80f3955b4f775b26767e823fc6a /src/libexecline/el_spawn0.c | |
parent | 32ed930a967c83c5b683d1d22c286b46a9f792ea (diff) | |
download | execline-3d91d9ce645efa020800b85be1ac2727ebcbad19.tar.xz |
Prepare for 2.9.7.0 ; rework forx/forstdin -p, add -P maxpar
Also refactor several things to keep global footprint low
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libexecline/el_spawn0.c')
-rw-r--r-- | src/libexecline/el_spawn0.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libexecline/el_spawn0.c b/src/libexecline/el_spawn0.c index d397557..a05ed5d 100644 --- a/src/libexecline/el_spawn0.c +++ b/src/libexecline/el_spawn0.c @@ -7,10 +7,6 @@ pid_t el_spawn0 (char const *prog, char const *const *argv, char const *const *envp) { - if (!argv[0]) - { - static char const *const newargv[3] = { EXECLINE_BINPREFIX "exit", "0", 0 } ; - return cspawn(newargv[0], newargv, envp, 0, 0, 0) ; - } - else return cspawn(prog, argv, envp, 0, 0, 0) ; + if (!argv[0]) argv = el_trueargv ; + return cspawn(prog, argv, envp, 0, 0, 0) ; } |