Log signals received by run_as worker
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 26 Aug 2016 19:47:07 +0000 (15:47 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 26 Aug 2016 19:47:07 +0000 (15:47 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/runas.c

index edbd70decc783ae3d00ec64fdb5d5736f79d706d..d4a8e6c9c6b8397b0fe318a240df024ed2ed6442 100644 (file)
@@ -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
This page took 0.026085 seconds and 4 git commands to generate.