diff options
Diffstat (limited to '')
-rw-r--r-- | cipher/rndunix.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cipher/rndunix.c b/cipher/rndunix.c index 716b02672..0132cd901 100644 --- a/cipher/rndunix.c +++ b/cipher/rndunix.c @@ -642,6 +642,9 @@ start_gatherer( int pipefd ) select(0, NULL, NULL, NULL, &tv); continue; } + if( errno == EPIPE ) /* parent has exited, so give up */ + exit(0); + /* we can't do very much here because stderr is closed */ if( dbgfp ) fprintf(dbgfp, "gatherer can't write to pipe: %s\n", |