From 6837405298161ebb58b4ba207ae2e524fa496d16 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 3 Aug 2012 13:55:22 +0000 Subject: -fix --- src/main/extractor_ipc_gnu.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/extractor_ipc_gnu.c') diff --git a/src/main/extractor_ipc_gnu.c b/src/main/extractor_ipc_gnu.c index 2cd5caf..6ef6013 100644 --- 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)) -- cgit v1.2.3