glib r7583 - trunk/gio
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7583 - trunk/gio
- Date: Thu, 9 Oct 2008 10:03:13 +0000 (UTC)
Author: alexl
Date: Thu Oct 9 10:03:12 2008
New Revision: 7583
URL: http://svn.gnome.org/viewvc/glib?rev=7583&view=rev
Log:
2008-10-09 Alexander Larsson <alexl redhat com>
* gunixinputstream.c (g_unix_input_stream_read):
Actually return -1 in case of cancelled, not old res value.
Modified:
trunk/gio/ChangeLog
trunk/gio/gunixinputstream.c
Modified: trunk/gio/gunixinputstream.c
==============================================================================
--- trunk/gio/gunixinputstream.c (original)
+++ trunk/gio/gunixinputstream.c Thu Oct 9 10:03:12 2008
@@ -201,7 +201,7 @@
while (1)
{
if (g_cancellable_set_error_if_cancelled (cancellable, error))
- break;
+ return -1;
res = read (unix_stream->priv->fd, buffer, count);
if (res == -1)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]