From: Roy Marples Date: Wed, 4 Mar 2015 11:41:53 +0000 (+0000) Subject: Move this struct to a better place X-Git-Tag: v6.8.0~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e8280afbafaabe876f7594ce5a478c4fd60a215;p=thirdparty%2Fdhcpcd.git Move this struct to a better place --- diff --git a/dhcpcd.c b/dhcpcd.c index 76357d6e..209d498f 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -1299,7 +1299,6 @@ main(int argc, char **argv) int sig; const char *siga; #endif - struct timespec ts; memset(&ctx, 0, sizeof(ctx)); #ifdef USE_SIGNALS @@ -1610,6 +1609,8 @@ main(int argc, char **argv) if (sig != SIGHUP) goto exit_failure; } else { + struct timespec ts; + if (sig == SIGHUP || sig == SIGUSR1) goto exit_success; /* Spin until it exits */