diff options
Diffstat (limited to 'src/libenvexec/mexec0_afn.c')
-rw-r--r-- | src/libenvexec/mexec0_afn.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libenvexec/mexec0_afn.c b/src/libenvexec/mexec0_afn.c new file mode 100644 index 0000000..160a509 --- /dev/null +++ b/src/libenvexec/mexec0_afn.c @@ -0,0 +1,11 @@ +/* ISC license. */ + +#include <unistd.h> + +#include <skalibs/exec.h> + +void mexec0_afn (char const *file, char const *const *argv, char const *const *envp, size_t envlen, char const *modif, size_t modiflen, size_t modifn) +{ + if (!argv[0]) _exit(0) ; + mexec_afn(file, argv, envp, envlen, modif, modiflen, modifn) ; +} |