From f16b31f875b74d297dc2b0127be24c37293dd674 Mon Sep 17 00:00:00 2001 From: krw Date: Sun, 25 Jun 2017 00:38:38 +0000 Subject: [PATCH] Oops. Revert unintentional/premature functional change. Deleting the address configured by dhclient should cause exit, not restart. There is no need to invoke sendhup(). Just exit and let the privileged child follow. --- sbin/dhclient/dhclient.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 8e90b3c5bfb..223fc7f1786 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.447 2017/06/24 23:32:57 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.448 2017/06/25 00:38:38 krw Exp $ */ /* * Copyright 2004 Henning Brauer @@ -340,10 +340,9 @@ routehandler(struct interface_info *ifi) break; if (adding.s_addr == INADDR_ANY && ifi->active && a.s_addr == ifi->active->address.s_addr) { - /* Tell the priv process active_addr is gone. */ log_warnx("Active address (%s) deleted; exiting", inet_ntoa(ifi->active->address)); - sendhup(); + quit = INTERNALSIG; goto done; } if (deleting.s_addr != INADDR_ANY) { -- 2.20.1