From 9a4f506a18ed04f5dbd69d74ec0c35ade79e357a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 10 Feb 1999 16:22:40 +0000 Subject: See ChangeLog: Wed Feb 10 17:15:39 CET 1999 Werner Koch --- cipher/rndunix.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cipher/rndunix.c') 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", -- cgit v1.2.3