commit 6837405298161ebb58b4ba207ae2e524fa496d16
parent fe4e4ba5d0fd62e49cb89975b582d0af47e4756e
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 3 Aug 2012 13:55:22 +0000
-fix
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/main/extractor_ipc_gnu.c b/src/main/extractor_ipc_gnu.c
@@ -439,6 +439,8 @@ EXTRACTOR_IPC_channel_recv_ (struct EXTRACTOR_Channel **channels,
if (max < channel->cpipe_out)
max = channel->cpipe_out;
}
+ if (-1 == max)
+ return 1; /* nothing left to do! */
tv.tv_sec = 10;
tv.tv_usec = 0;
if (-1 == select (max + 1, &to_check, NULL, NULL, &tv))