summaryrefslogtreecommitdiff
path: root/src/libenvexec/exec0_ae.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libenvexec/exec0_ae.c')
-rw-r--r--src/libenvexec/exec0_ae.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libenvexec/exec0_ae.c b/src/libenvexec/exec0_ae.c
new file mode 100644
index 0000000..14aac8b
--- /dev/null
+++ b/src/libenvexec/exec0_ae.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+#include <unistd.h>
+
+#include <skalibs/exec.h>
+
+void exec0_ae (char const *file, char const *const *argv, char const *const *envp)
+{
+ if (!argv[0]) _exit(0) ;
+ exec_ae(file, argv, envp) ;
+}