mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
parent
996edb0c46
commit
11254b3c7d
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user