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.
This commit is contained in:
Dan Winship 2013-08-29 09:25:42 -04:00
parent 996edb0c46
commit 11254b3c7d

View File

@ -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");