From a62320ae32632ce6e3a5cfc5ccecf7fac1eb04f7 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 23 Jul 2021 13:18:04 +0200 Subject: indexamajig: Fix error path when worker pipe is closed mid-chunk --- src/im-sandbox.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/im-sandbox.c b/src/im-sandbox.c index a1fab497..8aee7408 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -506,6 +506,9 @@ static int pump_chunk(FILE *fh, int ofd) if ( strcmp(line, "FLUSH\n") == 0 ) break; lwrite(ofd, line); + if ( strcmp(line, STREAM_CHUNK_START_MARKER"\n") == 0 ) { + chunk_started = 1; + } if ( strcmp(line, STREAM_CHUNK_END_MARKER"\n") == 0 ) break; } while ( 1 ); -- cgit v1.2.3