+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
+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
+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
+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
+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
+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
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;