diff options
author | Julien Massot <jmassot@aldebaran-robotics.com> | 2010-12-10 11:47:01 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-12-10 11:47:01 +0100 |
commit | 4a8fa882dd88e0d6f60ac9323738f89ce79b15e3 (patch) | |
tree | 60ef2f50276913b45361c9535364e0ae3afebd0e /gdhcp | |
parent | fb232f6928fce16bc3bc8c79c9a7d40dac619e1b (diff) | |
download | connman-4a8fa882dd88e0d6f60ac9323738f89ce79b15e3.tar.gz connman-4a8fa882dd88e0d6f60ac9323738f89ce79b15e3.tar.bz2 connman-4a8fa882dd88e0d6f60ac9323738f89ce79b15e3.zip |
gdhcp: Fix client listener watch events list
Add G_IO_NVAL, G_IO_ERR and G_IO_HUP to the events list.
Diffstat (limited to 'gdhcp')
-rw-r--r-- | gdhcp/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdhcp/client.c b/gdhcp/client.c index 55810d53..12d927eb 100644 --- a/gdhcp/client.c +++ b/gdhcp/client.c @@ -597,8 +597,8 @@ static int switch_listening_mode(GDHCPClient *dhcp_client, g_io_channel_set_close_on_unref(listener_channel, TRUE); dhcp_client->listener_watch = - g_io_add_watch_full(listener_channel, - G_PRIORITY_HIGH, G_IO_IN, + g_io_add_watch_full(listener_channel, G_PRIORITY_HIGH, + G_IO_IN | G_IO_NVAL | G_IO_ERR | G_IO_HUP, listener_event, dhcp_client, NULL); g_io_channel_unref(dhcp_client->listener_channel); |