summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/errwarn.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/dhclient/errwarn.c')
-rw-r--r--sbin/dhclient/errwarn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/dhclient/errwarn.c b/sbin/dhclient/errwarn.c
index de34583..5720780 100644
--- a/sbin/dhclient/errwarn.c
+++ b/sbin/dhclient/errwarn.c
@@ -83,6 +83,8 @@ error(char *fmt, ...)
fprintf(stderr, "exiting.\n");
fflush(stderr);
}
+ if (pidfile != NULL)
+ pidfile_remove(pidfile);
exit(1);
}
OpenPOWER on IntegriCloud