glib r7583 - trunk/gio



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]