[glib] gsocket: make GSocketSource trigger on G_IO_NVAL
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gsocket: make GSocketSource trigger on G_IO_NVAL
- Date: Thu, 29 Aug 2013 13:27:50 +0000 (UTC)
commit 11254b3c7d0e95748a9e6e7988948cb1ba686a7e
Author: Dan Winship <danw gnome org>
Date: Thu Aug 29 09:25:42 2013 -0400
gsocket: make GSocketSource trigger on G_IO_NVAL
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 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gsocket.c b/gio/gsocket.c
index 7f99a60..cc02784 100644
--- 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]