chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
95e3fae
)
killall: print notice what we forcefully KILL
author
Kay Sievers
<kay@vrfy.org>
Thu, 28 Mar 2013 22:00:32 +0000
(23:00 +0100)
committer
Kay Sievers
<kay@vrfy.org>
Sat, 30 Mar 2013 13:19:40 +0000
(14:19 +0100)
src/core/killall.c
patch
|
blob
|
history
diff --git
a/src/core/killall.c
b/src/core/killall.c
index 55200ffa4847e2eb8053c51201a451335c094603..1eb3766f777a81d3dd566794df15541dd49d1bfe 100644
(file)
--- 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)