diff options
Diffstat (limited to 'src/libstddjb/pathexec0.c')
-rw-r--r-- | src/libstddjb/pathexec0.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libstddjb/pathexec0.c b/src/libstddjb/pathexec0.c new file mode 100644 index 0000000..5241452 --- /dev/null +++ b/src/libstddjb/pathexec0.c @@ -0,0 +1,12 @@ +/* ISC license. */ + +/* MT-unsafe */ + +#include <unistd.h> +#include <skalibs/djbunix.h> + +void pathexec0 (char const *const *argv) +{ + if (!argv[0]) _exit(0) ; + pathexec(argv) ; +} |