diff options
Diffstat (limited to 'runfd.c')
-rw-r--r-- | runfd.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +#include <stdio.h> +#include <err.h> +#include <unistd.h> +#include <fcntl.h> + +char *args[] = { "batchrun", NULL }; + +int +main() +{ + //fcntl(3, F_SETFD, FD_CLOEXEC); + + fexecve(3, args, NULL); + err(1, "fexecve()"); +} |