diff options
| author | Roy Marples <roy@marples.name> | 2009-03-20 10:33:09 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-03-20 10:33:09 +0000 |
| commit | da7e6aef0b0d5186738b9430201e783373efe7c8 (patch) | |
| tree | c5f4688d20d31fc939bb0abe0dcd3b2cee7e0997 | |
| parent | 373e6ce084d5a03c07ddf11ddfc380b4da34fb1b (diff) | |
| download | dhcpcd-da7e6aef0b0d5186738b9430201e783373efe7c8.tar.xz | |
We should handle SIGUSR1 correctly.
| -rw-r--r-- | dhcpcd.c | 2 | ||||
| -rw-r--r-- | signals.c | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -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; @@ -44,7 +44,8 @@ static const int handle_sigs[] = { SIGHUP, SIGINT, SIGPIPE, - SIGTERM + SIGTERM, + SIGUSR1, }; static void |
