aboutsummaryrefslogtreecommitdiff
path: root/test/test-posixspawn-hook.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-posixspawn-hook.c')
-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);
+}