Actually return -1 in case of cancelled, not old res value.

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.



svn path=/trunk/; revision=7583
This commit is contained in:
Alexander Larsson 2008-10-09 10:03:12 +00:00 committed by Alexander Larsson
parent 5d31f41df4
commit 585135279f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.
2008-10-06 Colin Walters <walters@verbum.org>
Bug 554745 - GFileAttributeInfoList should be boxed

View File

@ -201,7 +201,7 @@ g_unix_input_stream_read (GInputStream *stream,
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)
{