From dc7654192c4b0c599cf5f742673a0829d6eddcd9 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 4 Aug 2020 03:12:18 -0500 Subject: Toysh signal handling adds a few EINTR recovery corner cases to lib. --- lib/xwrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3