From: Roy Marples Date: Fri, 20 Mar 2009 10:33:09 +0000 (+0000) Subject: We should handle SIGUSR1 correctly. X-Git-Tag: v5.0.0~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da7e6aef0b0d5186738b9430201e783373efe7c8;p=thirdparty%2Fdhcpcd.git We should handle SIGUSR1 correctly. --- diff --git a/dhcpcd.c b/dhcpcd.c index 584e31cc..e19dfbd8 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -1224,7 +1224,7 @@ handle_signal(_unused void *arg) for (iface = ifaces; iface; iface = iface->next) if (iface->state->new) configure(iface); - break; + return; case SIGPIPE: syslog(LOG_WARNING, "received SIGPIPE"); return; diff --git a/signals.c b/signals.c index 0007b5d2..835536fa 100644 --- a/signals.c +++ b/signals.c @@ -44,7 +44,8 @@ static const int handle_sigs[] = { SIGHUP, SIGINT, SIGPIPE, - SIGTERM + SIGTERM, + SIGUSR1, }; static void