aboutsummaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-10-17 21:26:05 +0200
committerMattias Andrée <maandree@kth.se>2017-10-17 21:26:05 +0200
commit03957487571c7f8b9939bb1a8cf2bb827e079e14 (patch)
treee0fcfd7e94ca15e7272b6fff5b9d78770922b88d /test.c
parentSimplify (diff)
downloadpdeath-03957487571c7f8b9939bb1a8cf2bb827e079e14.tar.gz
pdeath-03957487571c7f8b9939bb1a8cf2bb827e079e14.tar.bz2
pdeath-03957487571c7f8b9939bb1a8cf2bb827e079e14.tar.xz
Add make check
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'test.c')
-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;
+}