summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_mroute.c
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2000-08-07 16:45:42 +0000
committerjlemon <jlemon@FreeBSD.org>2000-08-07 16:45:42 +0000
commit8713fbd9e3d63370b8594130e7ee8ea2213d142d (patch)
tree62e7957c86190da051ce2b26d3e886fd4deffa5f /sys/netinet/ip_mroute.c
parente35ff24b97251716934363c568b0a7c1e8e064f5 (diff)
downloadFreeBSD-src-8713fbd9e3d63370b8594130e7ee8ea2213d142d.zip
FreeBSD-src-8713fbd9e3d63370b8594130e7ee8ea2213d142d.tar.gz
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)
Diffstat (limited to 'sys/netinet/ip_mroute.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud