mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 10:16:17 +01:00
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:
parent
5d31f41df4
commit
585135279f
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user