aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/xwrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xwrap.c b/lib/xwrap.c
index b144b2f4..abf0d4da 100644
--- a/lib/xwrap.c
+++ b/lib/xwrap.c
@@ -1048,7 +1048,7 @@ char *xgetline(FILE *fp, int *len)
errno = 0;
if (1>(ll = getline(&new, &linelen, fp))) {
- if (errno) perror_msg("getline");
+ if (errno && errno != EINTR) perror_msg("getline");
new = 0;
} else if (new[ll-1] == '\n') new[--ll] = 0;
if (len) *len = ll;