Jonathan Lemon ad91b6a280 Fix bug with timeout; previously, when attempting to poll the kqueue by
passing a zero-valued timeout, the code would always sleep for one tick.
Change code to avoid calling tsleep if we have no intention of sleeping.

Bring in bugfix from sys_select.c, r1.60 which also applies here.

Modify error handling slightly; passing in an invalid fd will now result
in EBADF returned in the eventlist, while an attempt to change a knote
which does not exist will result in ENOENT being returned.  Previously
such attempts would fail silently without notification.

Pointed out by: nicolas.leonard@animaths.com
	        Rick Reed (rr@yahoo-inc.com)
2000-08-07 16:45:42 +00:00
..
1999-10-29 18:09:36 +00:00
2000-07-29 10:07:38 +00:00
2000-06-29 09:26:26 +00:00
2000-06-10 19:21:20 +00:00
2000-07-28 22:40:04 +00:00
1999-08-28 01:08:13 +00:00
1999-08-28 01:08:13 +00:00
1999-11-14 13:54:44 +00:00
2000-05-01 20:32:07 +00:00
2000-04-22 15:13:06 +00:00
2000-07-28 22:41:56 +00:00
1999-08-28 01:08:13 +00:00
2000-04-29 11:32:15 +00:00
1999-11-21 19:03:20 +00:00
2000-07-29 10:07:38 +00:00
1999-08-28 01:08:13 +00:00
2000-06-10 07:12:40 +00:00
1999-08-28 01:08:13 +00:00
1999-08-28 01:08:13 +00:00