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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user