Mercurial > hg > dhcpcd
changeset 2979:d7169e1212f1 draft
Move this struct to a better place
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 04 Mar 2015 11:41:53 +0000 |
| parents | 88b0e8255e5a |
| children | c66ed22ed0d6 |
| files | dhcpcd.c |
| diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcpcd.c Tue Mar 03 18:31:14 2015 +0000 +++ b/dhcpcd.c Wed Mar 04 11:41:53 2015 +0000 @@ -1299,7 +1299,6 @@ int sig; const char *siga; #endif - struct timespec ts; memset(&ctx, 0, sizeof(ctx)); #ifdef USE_SIGNALS @@ -1610,6 +1609,8 @@ if (sig != SIGHUP) goto exit_failure; } else { + struct timespec ts; + if (sig == SIGHUP || sig == SIGUSR1) goto exit_success; /* Spin until it exits */
