2005-08-22 Dan Williams <dcbw@redhat.com>

Patch by Bill Moss <bmoss@clemson.edu>
	* src/dhcp-manager/nm-dhcp-manager.c
		- (nm_dhcp_manager_cancel_transaction): Give dhcdbd/dhclient
			some time to send out a RELEASE if they like


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@899 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams
2005-08-22 22:58:06 +00:00
parent 29aa287ecc
commit 1f8195ff81
3 changed files with 14 additions and 0 deletions

View File

@@ -320,6 +320,12 @@ void nm_dhcp_manager_cancel_transaction (NMDHCPManager *manager, NMActRequest *r
{
dbus_connection_send (manager->data->dbus_connection, message, NULL);
dbus_message_unref (message);
/* Give dhcdbd/dhclient some time to send out a RELEASE if they like */
/* FIXME: we should really monitor the interface's DHCP state by waiting
* for dhcdbd to tell us the device is "down" rather than sleeping here.
*/
sleep (1);
}
g_free (path);