diff options
Diffstat (limited to 'pkgs/test/make-binary-wrapper/inherit-argv0.c')
-rw-r--r-- | pkgs/test/make-binary-wrapper/inherit-argv0.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/test/make-binary-wrapper/inherit-argv0.c b/pkgs/test/make-binary-wrapper/inherit-argv0.c new file mode 100644 index 00000000000..71e12d9b024 --- /dev/null +++ b/pkgs/test/make-binary-wrapper/inherit-argv0.c @@ -0,0 +1,9 @@ +// makeCWrapper /path/to/executable \ + --inherit-argv0 + +#include <unistd.h> +#include <stdlib.h> + +int main(int argc, char **argv) { + return execv("/path/to/executable", argv); +} \ No newline at end of file |