killall: print notice what we forcefully KILL

This commit is contained in:
Kay Sievers
2013-03-30 14:19:40 +01:00
parent 95e3faefe2
commit df758e9875
+7
View File
@@ -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)