diff options
author | Mattias Andrée <maandree@kth.se> | 2017-10-17 21:26:05 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-10-17 21:26:05 +0200 |
commit | 03957487571c7f8b9939bb1a8cf2bb827e079e14 (patch) | |
tree | e0fcfd7e94ca15e7272b6fff5b9d78770922b88d /test.c | |
parent | Simplify (diff) | |
download | pdeath-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 '')
-rw-r--r-- | test.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; +} |