]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Stop the --reconfigure, -g option from spinning needlessly.
authorRoy Marples <roy@marples.name>
Sun, 18 Dec 2011 12:11:08 +0000 (12:11 +0000)
committerRoy Marples <roy@marples.name>
Sun, 18 Dec 2011 12:11:08 +0000 (12:11 +0000)
Thanks to Mike Crowe.

dhcpcd.c

index 31ca94a971a9d5d240696ee7c0daac365e924b0a..21219bc914ff50f8313873bcdef0f326e986a79e 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -1905,7 +1905,7 @@ main(int argc, char **argv)
                        if (sig != SIGALRM)
                                exit(EXIT_FAILURE);
                } else {
-                       if (sig == SIGALRM)
+                       if (sig == SIGALRM || sig == SIGUSR1)
                                exit(EXIT_SUCCESS);
                        /* Spin until it exits */
                        syslog(LOG_INFO, "waiting for pid %d to exit", pid);