projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
996edb0
)
gsocket: make GSocketSource trigger on G_IO_NVAL
author
Dan Winship
<danw@gnome.org>
Thu, 29 Aug 2013 13:25:42 +0000
(09:25 -0400)
committer
Dan Winship
<danw@gnome.org>
Thu, 29 Aug 2013 13:25:42 +0000
(09:25 -0400)
Getting G_IO_NVAL probably indicates bugs/race conditions in the
calling code, but if GSocket just ignores it, it will get stuck in an
infinite loop.
gio/gsocket.c
patch
|
blob
|
history
diff --git
a/gio/gsocket.c
b/gio/gsocket.c
index
7f99a60
..
cc02784
100644
(file)
--- a/
gio/gsocket.c
+++ b/
gio/gsocket.c
@@
-3331,7
+3331,7
@@
socket_source_new (GSocket *socket,
}
#endif
- condition |= G_IO_HUP | G_IO_ERR;
+ condition |= G_IO_HUP | G_IO_ERR
| G_IO_NVAL
;
source = g_source_new (&socket_source_funcs, sizeof (GSocketSource));
g_source_set_name (source, "GSocket");