From 78b428f19a4a5a165168c777c983a053a6f85016 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 13 Dec 2015 08:52:22 -0800 Subject: indexamajig: Restart fgets() in pump_chunk() if interrupted by system call This fixes the occasional unterminated chunk found in the output. --- src/im-sandbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/im-sandbox.c b/src/im-sandbox.c index cd66c728..23d3d0a2 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -374,7 +374,7 @@ static int pump_chunk(FILE *fh, int ofd) } ERROR("fgets() failed: %s\n", strerror(errno)); - return 1; + if ( errno != EINTR ) return 1; } -- cgit v1.2.3