summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gsystem-file-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsystem-file-utils.c b/gsystem-file-utils.c
index ff97e19..96b317a 100644
--- a/gsystem-file-utils.c
+++ b/gsystem-file-utils.c
@@ -64,7 +64,7 @@ open_nointr (const char *path, int flags, mode_t mode)
int res;
do
res = open (path, flags, mode);
- while (G_UNLIKELY (res != 0 && errno == EINTR));
+ while (G_UNLIKELY (res == -1 && errno == EINTR));
return res;
}