mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 14:36:16 +01:00
If we are watching the same fd several times (for different conditions,
2000-06-06 Tor Lillqvist <tml@iki.fi> * giowin32.c (g_io_channel_win32_pipe_readable): If we are watching the same fd several times (for different conditions, with different callbacks), check them all. Only call the callback for G_IO_IN from here. (This bug popped up when a watch for G_IO_ERR|G_IO_HUP was added to gimplib.)
This commit is contained in:
parent
88fd181eac
commit
700b6e5ff2
@ -1,3 +1,11 @@
|
||||
2000-06-06 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* giowin32.c (g_io_channel_win32_pipe_readable): If we are
|
||||
watching the same fd several times (for different conditions, with
|
||||
different callbacks), check them all. Only call the callback for
|
||||
G_IO_IN from here. (This bug popped up when a watch for
|
||||
G_IO_ERR|G_IO_HUP was added to gimplib.)
|
||||
|
||||
2000-05-30 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gutils.c (g_locale_get_codeset): Implement on Win32.
|
||||
|
@ -1,3 +1,11 @@
|
||||
2000-06-06 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* giowin32.c (g_io_channel_win32_pipe_readable): If we are
|
||||
watching the same fd several times (for different conditions, with
|
||||
different callbacks), check them all. Only call the callback for
|
||||
G_IO_IN from here. (This bug popped up when a watch for
|
||||
G_IO_ERR|G_IO_HUP was added to gimplib.)
|
||||
|
||||
2000-05-30 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gutils.c (g_locale_get_codeset): Implement on Win32.
|
||||
|
@ -1,3 +1,11 @@
|
||||
2000-06-06 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* giowin32.c (g_io_channel_win32_pipe_readable): If we are
|
||||
watching the same fd several times (for different conditions, with
|
||||
different callbacks), check them all. Only call the callback for
|
||||
G_IO_IN from here. (This bug popped up when a watch for
|
||||
G_IO_ERR|G_IO_HUP was added to gimplib.)
|
||||
|
||||
2000-05-30 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gutils.c (g_locale_get_codeset): Implement on Win32.
|
||||
|
@ -1,3 +1,11 @@
|
||||
2000-06-06 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* giowin32.c (g_io_channel_win32_pipe_readable): If we are
|
||||
watching the same fd several times (for different conditions, with
|
||||
different callbacks), check them all. Only call the callback for
|
||||
G_IO_IN from here. (This bug popped up when a watch for
|
||||
G_IO_ERR|G_IO_HUP was added to gimplib.)
|
||||
|
||||
2000-05-30 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gutils.c (g_locale_get_codeset): Implement on Win32.
|
||||
|
@ -1,3 +1,11 @@
|
||||
2000-06-06 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* giowin32.c (g_io_channel_win32_pipe_readable): If we are
|
||||
watching the same fd several times (for different conditions, with
|
||||
different callbacks), check them all. Only call the callback for
|
||||
G_IO_IN from here. (This bug popped up when a watch for
|
||||
G_IO_ERR|G_IO_HUP was added to gimplib.)
|
||||
|
||||
2000-05-30 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gutils.c (g_locale_get_codeset): Implement on Win32.
|
||||
|
@ -1,3 +1,11 @@
|
||||
2000-06-06 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* giowin32.c (g_io_channel_win32_pipe_readable): If we are
|
||||
watching the same fd several times (for different conditions, with
|
||||
different callbacks), check them all. Only call the callback for
|
||||
G_IO_IN from here. (This bug popped up when a watch for
|
||||
G_IO_ERR|G_IO_HUP was added to gimplib.)
|
||||
|
||||
2000-05-30 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gutils.c (g_locale_get_codeset): Implement on Win32.
|
||||
|
@ -1,3 +1,11 @@
|
||||
2000-06-06 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* giowin32.c (g_io_channel_win32_pipe_readable): If we are
|
||||
watching the same fd several times (for different conditions, with
|
||||
different callbacks), check them all. Only call the callback for
|
||||
G_IO_IN from here. (This bug popped up when a watch for
|
||||
G_IO_ERR|G_IO_HUP was added to gimplib.)
|
||||
|
||||
2000-05-30 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gutils.c (g_locale_get_codeset): Implement on Win32.
|
||||
|
@ -1,3 +1,11 @@
|
||||
2000-06-06 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* giowin32.c (g_io_channel_win32_pipe_readable): If we are
|
||||
watching the same fd several times (for different conditions, with
|
||||
different callbacks), check them all. Only call the callback for
|
||||
G_IO_IN from here. (This bug popped up when a watch for
|
||||
G_IO_ERR|G_IO_HUP was added to gimplib.)
|
||||
|
||||
2000-05-30 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gutils.c (g_locale_get_codeset): Implement on Win32.
|
||||
|
@ -1026,10 +1026,10 @@ g_io_channel_win32_pipe_readable (gint fd,
|
||||
for (i = 0; i < n_watched_pipes; i++)
|
||||
if (watched_pipes[i].fd == fd)
|
||||
{
|
||||
if (watched_pipes[i].channel->offset < offset)
|
||||
if ((watched_pipes[i].watch->condition & G_IO_IN)
|
||||
&& watched_pipes[i].channel->offset < offset)
|
||||
(*watched_pipes[i].watch->callback) (watched_pipes[i].watch->channel,
|
||||
G_IO_IN,
|
||||
watched_pipes[i].user_data);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -1026,10 +1026,10 @@ g_io_channel_win32_pipe_readable (gint fd,
|
||||
for (i = 0; i < n_watched_pipes; i++)
|
||||
if (watched_pipes[i].fd == fd)
|
||||
{
|
||||
if (watched_pipes[i].channel->offset < offset)
|
||||
if ((watched_pipes[i].watch->condition & G_IO_IN)
|
||||
&& watched_pipes[i].channel->offset < offset)
|
||||
(*watched_pipes[i].watch->callback) (watched_pipes[i].watch->channel,
|
||||
G_IO_IN,
|
||||
watched_pipes[i].user_data);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user