summaryrefslogtreecommitdiff
path: root/giounix.c
diff options
context:
space:
mode:
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>2000-03-20 13:19:20 +0000
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>2000-03-20 13:19:20 +0000
commit692ce678922891f6e6f74c4b61461a64e67854a4 (patch)
treedbc988e690987981bf9947a90c6bb506b323b23d /giounix.c
parent5e7134375eea0543c998715e03a458411906e89c (diff)
downloadglib-692ce678922891f6e6f74c4b61461a64e67854a4.tar.gz
Interpret EINTR as G_IO_ERROR_AGAIN.
2000-03-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * giounix.c (g_io_unix_write, g_io_unix_read): Interpret EINTR as G_IO_ERROR_AGAIN.
Diffstat (limited to 'giounix.c')
-rw-r--r--giounix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/giounix.c b/giounix.c
index 108527516..0f9b4614e 100644
--- a/giounix.c
+++ b/giounix.c
@@ -166,6 +166,7 @@ g_io_unix_read (GIOChannel *channel,
case EINVAL:
return G_IO_ERROR_INVAL;
case EAGAIN:
+ case EINTR:
return G_IO_ERROR_AGAIN;
default:
return G_IO_ERROR_UNKNOWN;
@@ -197,6 +198,7 @@ g_io_unix_write(GIOChannel *channel,
case EINVAL:
return G_IO_ERROR_INVAL;
case EAGAIN:
+ case EINTR:
return G_IO_ERROR_AGAIN;
default:
return G_IO_ERROR_UNKNOWN;