diff options
author | comex | 2015-01-28 01:16:49 -0500 |
---|---|---|
committer | comex | 2015-01-28 01:16:49 -0500 |
commit | 12efdc925f1ba8ba0616736b5b5351aa82667ff9 (patch) | |
tree | f738857392fd79dacf33f4eac6aa16c09b913427 /test | |
parent | some more stuff compiles (diff) | |
download | substitute-12efdc925f1ba8ba0616736b5b5351aa82667ff9.tar.gz |
sorta
Diffstat (limited to 'test')
-rw-r--r-- | test/test-posixspawn-hook.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test-posixspawn-hook.c b/test/test-posixspawn-hook.c new file mode 100644 index 0000000..409f5fe --- /dev/null +++ b/test/test-posixspawn-hook.c @@ -0,0 +1,9 @@ +#include <spawn.h> +#include <stdlib.h> +#include <stdio.h> +int main(__attribute__((unused)) int argc, char **argv) { + pid_t pid = 0; + printf("doing it:\n"); + int ret = posix_spawn(&pid, argv[1], NULL, NULL, argv + 1, NULL); + printf("==> %d pid=%d\n", ret, pid); +} |