about summary refs log tree commit diff
path: root/pkgs/test/make-binary-wrapper/inherit-argv0.c
blob: 71e12d9b024a5967f27465af99b50d72e835ca17 (plain) (blame)
1
2
3
4
5
6
7
8
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);
}