From 75dea27979f0d219eed9c6afc3a721f592f7ca2a Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 25 Jul 2019 22:24:00 +0200 Subject: Terminate the unpacker child processes if the main process exits Should the main process exit (e.g. the user presses CTRL+C) or explcitily sends it a signal, the desired behaviour is for the children to stop unpacking and exit. This commit adds a line to configure the kernel to send SIGKILL to the children if their parent dies. The same option also exists on various BSDs (not all of them) but with a different name which has to be checked for and adjusted should the program be required to run on one of those. Signed-off-by: David Oberhollenzer --- unpack/rdsquashfs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'unpack/rdsquashfs.h') diff --git a/unpack/rdsquashfs.h b/unpack/rdsquashfs.h index 34404b0..8866679 100644 --- a/unpack/rdsquashfs.h +++ b/unpack/rdsquashfs.h @@ -15,6 +15,7 @@ #include #include +#include #include #include #include -- cgit v1.2.3