mirror of https://github.com/deavmi/libsnooze
Event
- `wait(timeval)` will now throw a `SnoozeError` when the `select(fd*, fd*, fd*, timeval)` returns `-1`
This commit is contained in:
parent
00ea389d4a
commit
593f7f44db
|
@ -136,6 +136,12 @@ public class Event
|
|||
return false;
|
||||
}
|
||||
// TODO: Check the -1 case
|
||||
/* On error */
|
||||
else if(status == -1)
|
||||
{
|
||||
throw new SnoozeError("Error selecting pipe fd '"~to!(string)(readFD)~"' when trying to wait()");
|
||||
}
|
||||
/* On success */
|
||||
else
|
||||
{
|
||||
// TODO: Perform read now to clear sttaus for next wait()
|
||||
|
|
Loading…
Reference in New Issue