diff options
author | Thomas White <taw@physics.org> | 2021-07-23 13:18:04 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-07-23 13:18:04 +0200 |
commit | a62320ae32632ce6e3a5cfc5ccecf7fac1eb04f7 (patch) | |
tree | 773f2f0a184bb2812f81fc4f2e26e0d219229712 /src | |
parent | 21679d8e17a80571d09e374094ed3ff2e720bf74 (diff) |
indexamajig: Fix error path when worker pipe is closed mid-chunk
Diffstat (limited to 'src')
-rw-r--r-- | src/im-sandbox.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 ); |