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)
return n_processes;
}
-void broadcast_signal(int sig, bool wait) {
+void broadcast_signal(int sig, bool wait_for_exit) {
sigset_t mask, oldmask;
int n_processes;
if (n_processes <= 0)
goto finish;
- if (wait)
+ if (wait_for_exit)
wait_for_children(n_processes, &mask);
finish: