chiark / gitweb /
killall: avoid gcc warning about wait name clash
authorLennart Poettering <lennart@poettering.net>
Thu, 19 Jul 2012 00:17:11 +0000 (02:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 19 Jul 2012 00:17:11 +0000 (02:17 +0200)
src/core/killall.c

index 6fcaf84..55200ff 100644 (file)
@@ -150,7 +150,7 @@ static int killall(int sig) {
         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;
 
@@ -169,7 +169,7 @@ void broadcast_signal(int sig, bool wait) {
         if (n_processes <= 0)
                 goto finish;
 
-        if (wait)
+        if (wait_for_exit)
                 wait_for_children(n_processes, &mask);
 
 finish: