From: Miroslav Lichvar Date: Thu, 10 Dec 2015 15:10:31 +0000 (+0100) Subject: privops: ignore signals in helper X-Git-Tag: 2.3-pre1~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e327bb0a3e215da81a8f213845f3c0652cb8d44;p=thirdparty%2Fchrony.git 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. --- diff --git a/privops.c b/privops.c index cd591e1a..c084ac5e 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 {