mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 14:36:16 +01:00
Don't claim broken pipes are unreadable. (Well, they are, but read()
2003-01-04 Tor Lillqvist <tml@iki.fi> * glib/giowin32.c (g_io_win32_fd_get_flags_internal): Don't claim broken pipes are unreadable. (Well, they are, but read() handles it, and treats it like EOF.)
This commit is contained in:
parent
53266027ee
commit
a0821bd753
@ -1,3 +1,9 @@
|
||||
2003-01-04 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/giowin32.c (g_io_win32_fd_get_flags_internal): Don't claim
|
||||
broken pipes are unreadable. (Well, they are, but read() handles
|
||||
it, and treats it like EOF.)
|
||||
|
||||
Thu Jan 2 16:19:15 2003 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: use AC_COMPILE_IFELSE instead of AC_TRY_COMPILE for
|
||||
|
@ -1,3 +1,9 @@
|
||||
2003-01-04 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/giowin32.c (g_io_win32_fd_get_flags_internal): Don't claim
|
||||
broken pipes are unreadable. (Well, they are, but read() handles
|
||||
it, and treats it like EOF.)
|
||||
|
||||
Thu Jan 2 16:19:15 2003 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: use AC_COMPILE_IFELSE instead of AC_TRY_COMPILE for
|
||||
|
@ -1,3 +1,9 @@
|
||||
2003-01-04 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/giowin32.c (g_io_win32_fd_get_flags_internal): Don't claim
|
||||
broken pipes are unreadable. (Well, they are, but read() handles
|
||||
it, and treats it like EOF.)
|
||||
|
||||
Thu Jan 2 16:19:15 2003 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: use AC_COMPILE_IFELSE instead of AC_TRY_COMPILE for
|
||||
|
@ -1,3 +1,9 @@
|
||||
2003-01-04 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/giowin32.c (g_io_win32_fd_get_flags_internal): Don't claim
|
||||
broken pipes are unreadable. (Well, they are, but read() handles
|
||||
it, and treats it like EOF.)
|
||||
|
||||
Thu Jan 2 16:19:15 2003 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: use AC_COMPILE_IFELSE instead of AC_TRY_COMPILE for
|
||||
|
@ -1,3 +1,9 @@
|
||||
2003-01-04 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/giowin32.c (g_io_win32_fd_get_flags_internal): Don't claim
|
||||
broken pipes are unreadable. (Well, they are, but read() handles
|
||||
it, and treats it like EOF.)
|
||||
|
||||
Thu Jan 2 16:19:15 2003 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: use AC_COMPILE_IFELSE instead of AC_TRY_COMPILE for
|
||||
|
@ -1,3 +1,9 @@
|
||||
2003-01-04 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/giowin32.c (g_io_win32_fd_get_flags_internal): Don't claim
|
||||
broken pipes are unreadable. (Well, they are, but read() handles
|
||||
it, and treats it like EOF.)
|
||||
|
||||
Thu Jan 2 16:19:15 2003 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: use AC_COMPILE_IFELSE instead of AC_TRY_COMPILE for
|
||||
|
@ -1297,7 +1297,7 @@ g_io_win32_fd_get_flags_internal (GIOChannel *channel,
|
||||
if (st->st_mode & _S_IFIFO)
|
||||
{
|
||||
channel->is_readable =
|
||||
(PeekNamedPipe ((HANDLE) _get_osfhandle (win32_channel->fd), &c, 0, &count, NULL, NULL) != 0);
|
||||
(PeekNamedPipe ((HANDLE) _get_osfhandle (win32_channel->fd), &c, 0, &count, NULL, NULL) != 0) || GetLastError () == ERROR_BROKEN_PIPE;
|
||||
channel->is_writeable =
|
||||
(WriteFile ((HANDLE) _get_osfhandle (win32_channel->fd), &c, 0, &count, NULL) != 0);
|
||||
channel->is_seekable = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user