From fd6bd9d9090213d4644fc0a96f06fb34ce5365fc Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 25 Jun 2023 23:22:40 +0200 Subject: Some code improvements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- tests/abort-nodump.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/abort-nodump.c (limited to 'tests/abort-nodump.c') diff --git a/tests/abort-nodump.c b/tests/abort-nodump.c new file mode 100644 index 0000000..9e13595 --- /dev/null +++ b/tests/abort-nodump.c @@ -0,0 +1,9 @@ +#include +#include + +int +main(void) +{ + prctl(PR_SET_DUMPABLE, 0); + abort(); +} -- cgit v1.2.3-70-g09d2