From: Jérémie Galarneau Date: Tue, 29 Sep 2015 16:19:00 +0000 (-0400) Subject: Fix: Log and ignore SIGINT and SIGTERM in run_as worker X-Git-Tag: v2.8.0-rc1~297 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=a80ed3053a3b161d23e7bd57bd227671df047ed0;hp=a80ed3053a3b161d23e7bd57bd227671df047ed0;p=lttng-tools.git Fix: Log and ignore SIGINT and SIGTERM in run_as worker The run_as worker is in the same process group as its parent and will receive both SIGINT and SIGTERM. However, we want to give the worker a chance to tear itself down gracefully when its parent closes the command socket. The run_as worker will now ignore these signals (although it will log them) and wait for the parent to induce the teardown. Signed-off-by: Jérémie Galarneau ---