summaryrefslogtreecommitdiff
path: root/qa/src/killparent.c
diff options
context:
space:
mode:
Diffstat (limited to 'qa/src/killparent.c')
-rw-r--r--qa/src/killparent.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/qa/src/killparent.c b/qa/src/killparent.c
new file mode 100644
index 0000000..b8e0ca2
--- /dev/null
+++ b/qa/src/killparent.c
@@ -0,0 +1,13 @@
+/*
+ * Unconditionally kill your parent ... BEWARE!
+ */
+#include <sys/types.h>
+#include <unistd.h>
+#include <signal.h>
+
+int
+main()
+{
+ kill(getppid(), SIGKILL);
+ return(0);
+}