aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-08-04 03:12:18 -0500
committerRob Landley <rob@landley.net>2020-08-04 03:12:18 -0500
commitdc7654192c4b0c599cf5f742673a0829d6eddcd9 (patch)
treebf1dd8bee3c9122d85db48b8c229ef34b8d58140 /lib
parent3ba988c453056cbdda2bc26f1b9cbc3b4697acd0 (diff)
downloadtoybox-dc7654192c4b0c599cf5f742673a0829d6eddcd9.tar.gz
Toysh signal handling adds a few EINTR recovery corner cases to lib.
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;