From 8e327bb0a3e215da81a8f213845f3c0652cb8d44 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 10 Dec 2015 16:10:31 +0100 Subject: [PATCH] privops: ignore signals in helper If the whole process group receives a signal (e.g. CTRL-C in terminal), the helper process needs to keep running until it gets the QUIT request, so the system drivers can still use it in their finalisation, e.g. to cancel remaining slew. --- privops.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/privops.c b/privops.c index cd591e1..c084ac5 100644 --- a/privops.c +++ b/privops.c @@ -520,6 +520,9 @@ PRV_StartHelper(void) close(fd); } + /* ignore signals, the process will exit on OP_QUIT request */ + UTI_SetQuitSignalsHandler(SIG_IGN); + helper_main(sock_pair[1]); } else {