+Mon Jul 2 19:48:52 2001 Andrew Lanoix <alanoix@umich.edu>
+
+ *giowin32.c: g_source_remove()ing an socket iochannel closes
+ the socket when it should not. Patch by Peter Zelezny
+ <zed@linux.com>
+
+ *giowin32.c: Fix a few typos
+
Mon Jul 2 16:03:21 2001 Owen Taylor <otaylor@redhat.com>
* glib/giochannel.c (g_io_channel_get_buffer_condition): Fix.
+Mon Jul 2 19:48:52 2001 Andrew Lanoix <alanoix@umich.edu>
+
+ *giowin32.c: g_source_remove()ing an socket iochannel closes
+ the socket when it should not. Patch by Peter Zelezny
+ <zed@linux.com>
+
+ *giowin32.c: Fix a few typos
+
Mon Jul 2 16:03:21 2001 Owen Taylor <otaylor@redhat.com>
* glib/giochannel.c (g_io_channel_get_buffer_condition): Fix.
+Mon Jul 2 19:48:52 2001 Andrew Lanoix <alanoix@umich.edu>
+
+ *giowin32.c: g_source_remove()ing an socket iochannel closes
+ the socket when it should not. Patch by Peter Zelezny
+ <zed@linux.com>
+
+ *giowin32.c: Fix a few typos
+
Mon Jul 2 16:03:21 2001 Owen Taylor <otaylor@redhat.com>
* glib/giochannel.c (g_io_channel_get_buffer_condition): Fix.
+Mon Jul 2 19:48:52 2001 Andrew Lanoix <alanoix@umich.edu>
+
+ *giowin32.c: g_source_remove()ing an socket iochannel closes
+ the socket when it should not. Patch by Peter Zelezny
+ <zed@linux.com>
+
+ *giowin32.c: Fix a few typos
+
Mon Jul 2 16:03:21 2001 Owen Taylor <otaylor@redhat.com>
* glib/giochannel.c (g_io_channel_get_buffer_condition): Fix.
+Mon Jul 2 19:48:52 2001 Andrew Lanoix <alanoix@umich.edu>
+
+ *giowin32.c: g_source_remove()ing an socket iochannel closes
+ the socket when it should not. Patch by Peter Zelezny
+ <zed@linux.com>
+
+ *giowin32.c: Fix a few typos
+
Mon Jul 2 16:03:21 2001 Owen Taylor <otaylor@redhat.com>
* glib/giochannel.c (g_io_channel_get_buffer_condition): Fix.
+Mon Jul 2 19:48:52 2001 Andrew Lanoix <alanoix@umich.edu>
+
+ *giowin32.c: g_source_remove()ing an socket iochannel closes
+ the socket when it should not. Patch by Peter Zelezny
+ <zed@linux.com>
+
+ *giowin32.c: Fix a few typos
+
Mon Jul 2 16:03:21 2001 Owen Taylor <otaylor@redhat.com>
* glib/giochannel.c (g_io_channel_get_buffer_condition): Fix.
+Mon Jul 2 19:48:52 2001 Andrew Lanoix <alanoix@umich.edu>
+
+ *giowin32.c: g_source_remove()ing an socket iochannel closes
+ the socket when it should not. Patch by Peter Zelezny
+ <zed@linux.com>
+
+ *giowin32.c: Fix a few typos
+
Mon Jul 2 16:03:21 2001 Owen Taylor <otaylor@redhat.com>
* glib/giochannel.c (g_io_channel_get_buffer_condition): Fix.
+Mon Jul 2 19:48:52 2001 Andrew Lanoix <alanoix@umich.edu>
+
+ *giowin32.c: g_source_remove()ing an socket iochannel closes
+ the socket when it should not. Patch by Peter Zelezny
+ <zed@linux.com>
+
+ *giowin32.c: Fix a few typos
+
Mon Jul 2 16:03:21 2001 Owen Taylor <otaylor@redhat.com>
* glib/giochannel.c (g_io_channel_get_buffer_condition): Fix.
read_thread (void *parameter)
{
GIOWin32Channel *channel = parameter;
- GSList *tmp;
guchar *buffer;
guint nbytes;
LOCK (channel->mutex);
if (channel->fd != -1)
{
- if (channel->debug)
- g_print ("select_thread %#x: channel fd %d needs closing\n",
- channel->thread_id, channel->fd);
- closesocket (channel->fd);
+ /* DO NOT close the fd here */
channel->fd = -1;
}
memmove (&msg, buf, sizeof (MSG));
if (!PostMessage (win32_channel->hwnd, msg.message, msg.wParam, msg.lParam))
{
- g_set_error(err, G_IO_CHANNEL_ERROR, G_IO_CHANNEL_ERROR_FAILED
+ g_set_error(err, G_IO_CHANNEL_ERROR, G_IO_CHANNEL_ERROR_FAILED,
_("Unknown error")); /* Correct error message? FIXME */
return G_IO_STATUS_ERROR;
}
GSeekType type,
GError **err)
{
- g_set_error(error, G_IO_CHANNEL_ERROR, G_IO_CHANNEL_ERROR_SPIPE,
+ g_set_error(err, G_IO_CHANNEL_ERROR, G_IO_CHANNEL_ERROR_SPIPE,
_("Seeking not allowed on this type of channel"));
return G_IO_STATUS_ERROR;