summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-03-20 10:33:09 +0000
committerRoy Marples <roy@marples.name>2009-03-20 10:33:09 +0000
commitda7e6aef0b0d5186738b9430201e783373efe7c8 (patch)
treec5f4688d20d31fc939bb0abe0dcd3b2cee7e0997
parent373e6ce084d5a03c07ddf11ddfc380b4da34fb1b (diff)
downloaddhcpcd-da7e6aef0b0d5186738b9430201e783373efe7c8.tar.xz
We should handle SIGUSR1 correctly.
-rw-r--r--dhcpcd.c2
-rw-r--r--signals.c3
2 files changed, 3 insertions, 2 deletions
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