projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb232f6
)
gdhcp: Fix client listener watch events list
author
Julien Massot
<jmassot@aldebaran-robotics.com>
Fri, 10 Dec 2010 10:47:01 +0000
(11:47 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 10 Dec 2010 10:47:01 +0000
(11:47 +0100)
Add G_IO_NVAL, G_IO_ERR and G_IO_HUP to the events list.
gdhcp/client.c
patch
|
blob
|
history
diff --git
a/gdhcp/client.c
b/gdhcp/client.c
index
55810d5
..
12d927e
100644
(file)
--- 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);