GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit 3e78c3c9 authored by Tor Lillqvist's avatar Tor Lillqvist Committed by Tor Lillqvist

Always claim file descriptors open to devices are readable, since we can't

2005-03-30  Tor Lillqvist  <tml@novell.com>

	* glib/giowin32.c (g_io_win32_fd_get_flags_internal): Always claim
	file descriptors open to devices are readable, since we can't
	know. fstat() doesn't gve any useful information.
parent ce1509b6
2005-03-30 Tor Lillqvist <tml@novell.com>
* glib/giowin32.c (g_io_win32_fd_get_flags_internal): Always claim
file descriptors open to devices are readable, since we can't
know. fstat() doesn't gve any useful information.
2005-03-29 Tor Lillqvist <tml@novell.com>
* glib/gmain.c (g_poll): [Win32] If the event fired, assign
......
2005-03-30 Tor Lillqvist <tml@novell.com>
* glib/giowin32.c (g_io_win32_fd_get_flags_internal): Always claim
file descriptors open to devices are readable, since we can't
know. fstat() doesn't gve any useful information.
2005-03-29 Tor Lillqvist <tml@novell.com>
* glib/gmain.c (g_poll): [Win32] If the event fired, assign
......
2005-03-30 Tor Lillqvist <tml@novell.com>
* glib/giowin32.c (g_io_win32_fd_get_flags_internal): Always claim
file descriptors open to devices are readable, since we can't
know. fstat() doesn't gve any useful information.
2005-03-29 Tor Lillqvist <tml@novell.com>
* glib/gmain.c (g_poll): [Win32] If the event fired, assign
......
2005-03-30 Tor Lillqvist <tml@novell.com>
* glib/giowin32.c (g_io_win32_fd_get_flags_internal): Always claim
file descriptors open to devices are readable, since we can't
know. fstat() doesn't gve any useful information.
2005-03-29 Tor Lillqvist <tml@novell.com>
* glib/gmain.c (g_poll): [Win32] If the event fired, assign
......
......@@ -1450,9 +1450,9 @@ g_io_win32_fd_get_flags_internal (GIOChannel *channel,
{
/* XXX Seems there is no way to find out the readability of file
* handles to device files (consoles, mostly) without doing a
* blocking read. So punt, use st->st_mode.
* blocking read. So punt, say it's readable.
*/
channel->is_readable = !!(st->st_mode & _S_IREAD);
channel->is_readable = TRUE;
channel->is_writeable =
(WriteFile ((HANDLE) _get_osfhandle (win32_channel->fd), &c, 0, &count, NULL) != 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment