summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-03-28 23:00:32 +0100
committerKay Sievers <kay@vrfy.org>2013-03-30 14:19:40 +0100
commitdf758e98754016119a9c8d49213a636a80ffab22 (patch)
treec3c9ea715913ee7756f29f915b2ca328f5f69423
parent95e3faefe2e262fdfe3beaa2b344ad12372b8af0 (diff)
killall: print notice what we forcefully KILL
-rw-r--r--src/core/killall.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/killall.c b/src/core/killall.c
index 55200ffa48..1eb3766f77 100644
--- a/src/core/killall.c
+++ b/src/core/killall.c
@@ -139,6 +139,13 @@ static int killall(int sig) {
if (ignore_proc(pid))
continue;
+ if (sig == SIGKILL) {
+ _cleanup_free_ char *s;
+
+ get_process_comm(pid, &s);
+ log_notice("Sending SIGKILL to PID %lu (%s)", (unsigned long) pid, strna(s));
+ }
+
if (kill(pid, sig) >= 0)
n_processes++;
else if (errno != ENOENT)