aboutsummaryrefslogtreecommitdiff
path: root/test/test-posixspawn-hook.c
diff options
context:
space:
mode:
authorcomex2015-01-28 01:16:49 -0500
committercomex2015-01-28 01:16:49 -0500
commit12efdc925f1ba8ba0616736b5b5351aa82667ff9 (patch)
treef738857392fd79dacf33f4eac6aa16c09b913427 /test/test-posixspawn-hook.c
parentsome more stuff compiles (diff)
downloadsubstitute-12efdc925f1ba8ba0616736b5b5351aa82667ff9.tar.gz
sorta
Diffstat (limited to '')
-rw-r--r--test/test-posixspawn-hook.c9
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);
+}