Stefan Schuermans commited on 2011-10-25 21:17:00
Showing 1 changed files, with 3 additions and 0 deletions.
... | ... |
@@ -40,6 +40,9 @@ void Io::wait(Set &read, Set &write, const Time &timeout) |
40 | 40 |
|
41 | 41 |
// get timeout |
42 | 42 |
struct timeval to; |
43 |
+ if (timeout < Time::zero) // don't use negaitve timeout |
|
44 |
+ Time::zero.toTimeval(to); |
|
45 |
+ else |
|
43 | 46 |
timeout.toTimeval(to); |
44 | 47 |
|
45 | 48 |
// wait for I/O event |
46 | 49 |