diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-08-03 13:55:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-08-03 13:55:22 +0000 |
commit | 6837405298161ebb58b4ba207ae2e524fa496d16 (patch) | |
tree | b46c5615919ac3ee7cc61b353bfb036296a1ebe5 /src/main/extractor_ipc_gnu.c | |
parent | fe4e4ba5d0fd62e49cb89975b582d0af47e4756e (diff) | |
download | libextractor-6837405298161ebb58b4ba207ae2e524fa496d16.tar.gz libextractor-6837405298161ebb58b4ba207ae2e524fa496d16.zip |
-fix
Diffstat (limited to 'src/main/extractor_ipc_gnu.c')
-rw-r--r-- | src/main/extractor_ipc_gnu.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, | |||
439 | if (max < channel->cpipe_out) | 439 | if (max < channel->cpipe_out) |
440 | max = channel->cpipe_out; | 440 | max = channel->cpipe_out; |
441 | } | 441 | } |
442 | if (-1 == max) | ||
443 | return 1; /* nothing left to do! */ | ||
442 | tv.tv_sec = 10; | 444 | tv.tv_sec = 10; |
443 | tv.tv_usec = 0; | 445 | tv.tv_usec = 0; |
444 | if (-1 == select (max + 1, &to_check, NULL, NULL, &tv)) | 446 | if (-1 == select (max + 1, &to_check, NULL, NULL, &tv)) |