aboutsummaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test.c b/test.c
new file mode 100644
index 0000000..082a952
--- /dev/null
+++ b/test.c
@@ -0,0 +1,9 @@
+/* See LICENSE file for copyright and license details. */
+#include <sys/prctl.h>
+
+int
+main(void)
+{
+ int val = 0;
+ return prctl(PR_GET_PDEATHSIG, &val) || !val;
+}