From 1c657b0883140fcd0afa7c92b2940713a8096d29 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sun, 18 Dec 2011 12:11:08 +0000 Subject: [PATCH] Stop the --reconfigure, -g option from spinning needlessly. Thanks to Mike Crowe. --- dhcpcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhcpcd.c b/dhcpcd.c index 31ca94a9..21219bc9 100644 --- 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); -- 2.47.2