summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-07-14 20:51:41 +0000
committerRoy Marples <roy@marples.name>2008-07-14 20:51:41 +0000
commitb7979d9e55a03f1eb3bc6d7de2e7fadde0b24011 (patch)
tree9a1cf8c13df76c78422fe7515edcc7734b1fac29 /dhcpcd.c
parent8709c115ea79f9adb54fadc564a88292da0933b5 (diff)
downloaddhcpcd-b7979d9e55a03f1eb3bc6d7de2e7fadde0b24011.tar.xz
If renewing an IPV4LL address, re-enter the probing state of just exiting.
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index aa589a85..f8447cf9 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -917,18 +917,15 @@ main(int argc, char **argv)
logger(LOG_INFO, "sending signal %d to pid %d",
sig, pid);
- if (!pid || (i = kill(pid, sig)))
+ if (!pid || (i = kill(pid, sig))) {
logger(sig == SIGALRM ? LOG_INFO : LOG_ERR,
""PACKAGE" not running");
-
- if (pid != 0 && (sig != SIGALRM || i != 0))
unlink(options->pidfile);
-
+ }
if (i == 0) {
retval = EXIT_SUCCESS;
goto abort;
}
-
if (sig != SIGALRM)
goto abort;
}