From 39c2797848d6bd335e100dcf3a90ee6a9b51f07e Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Sat, 1 May 2010 10:12:25 -0700 Subject: [PATCH] dhcp: don't reset pid on client exit Clients in IPv6 info-only mode may exit after getting a response from the server, since there are no leases involved in info-only mode. To ensure that the client's options are received when the event comes in (which could be after we get the child watch callback for the exit) we still need the client's PID. --- src/dhcp-manager/nm-dhcp-client.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/dhcp-manager/nm-dhcp-client.c b/src/dhcp-manager/nm-dhcp-client.c index 22468db5e..c2ead0e70 100644 --- a/src/dhcp-manager/nm-dhcp-client.c +++ b/src/dhcp-manager/nm-dhcp-client.c @@ -227,7 +227,6 @@ daemon_watch_cb (GPid pid, gint status, gpointer user_data) nm_log_warn (LOGD_DHCP, "DHCP client died abnormally"); } else priv->state = DHC_END; - priv->pid = -1; watch_cleanup (self); timeout_cleanup (self);