From c90e2998f6ddb225efba3538f3e06b8a79f2c023 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 25 Oct 2022 14:34:17 -0400 Subject: nettrace: various fixes --- src/fnettrace/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/fnettrace') diff --git a/src/fnettrace/main.c b/src/fnettrace/main.c index 56974e79c..f57aa6c87 100644 --- a/src/fnettrace/main.c +++ b/src/fnettrace/main.c @@ -21,6 +21,8 @@ #include "radix.h" #include #include +#include +#include #define MAX_BUF_SIZE (64 * 1024) static int arg_netfilter = 0; @@ -732,6 +734,9 @@ int main(int argc, char **argv) { return 1; } + // kill the process if the parent died + prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); + ansi_clrscr(); if (arg_netfilter) logprintf("starting network lockdown\n"); -- cgit v1.2.3-54-g00ecf