From: Jérémie Galarneau Date: Fri, 26 Aug 2016 19:47:07 +0000 (-0400) Subject: Log signals received by run_as worker X-Git-Tag: v2.9.0-rc1~52 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=22d5e48e6a56b07559d84a1ca0a55167dffd7622;p=lttng-tools.git Log signals received by run_as worker Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/runas.c b/src/common/runas.c index edbd70dec..d4a8e6c9c 100644 --- a/src/common/runas.c +++ b/src/common/runas.c @@ -560,10 +560,14 @@ void worker_sighandler(int sig) signame = "SIGTERM"; break; default: - signame = "Unknown"; + signame = NULL; } - DBG("run_as worker received signal %s", signame); + if (signame) { + DBG("run_as worker received signal %s", signame); + } else { + DBG("run_as_worker received signal %d", sig); + } } static