Fix invalid timeout for poll().

Fixes #5963
This commit is contained in:
Gunnar Beutner 2014-04-08 07:08:53 +02:00
parent 32e1c02b9a
commit 2ab208e452
1 changed files with 4 additions and 1 deletions

View File

@ -127,7 +127,10 @@ void Process::IOThreadProc(int tid)
} }
} }
int rc = poll(pfds, count, timeout * 1000); if (timeout != -1)
timeout *= 1000;
int rc = poll(pfds, count, timeout);
if (rc < 0) if (rc < 0)
continue; continue;