aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fork-stop.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/fork-stop.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/fork-stop.c b/tests/fork-stop.c
new file mode 100644
index 0000000..0682848
--- /dev/null
+++ b/tests/fork-stop.c
@@ -0,0 +1,10 @@
+#include <signal.h>
+#include <unistd.h>
+
+int
+main(void)
+{
+ if (fork() == -1)
+ return -1;
+ return kill(getpid(), SIGSTOP);
+}