]> jfr.im git - solanum.git/commit - libratbox/src/kqueue.c
Fix a mistake in kqueue 'overflow' handling.
authorJilles Tjoelker <redacted>
Wed, 14 May 2008 17:56:41 +0000 (19:56 +0200)
committerJilles Tjoelker <redacted>
Wed, 14 May 2008 17:56:41 +0000 (19:56 +0200)
commit6770b968bc22065a186734e6375359a164672d37
tree22c02ff495b0433af5c0cb579542ecb12aaa079d
parent079b48b710c16f64232e9334a21cd45d55895a6a
Fix a mistake in kqueue 'overflow' handling.
If there is no space in the output buffer to report an
error adding to the kqueue, kevent(2) will abort and
return the error in errno (I was correct that it does
not tell you where it failed). So do not abort the loop
if kevent(2) fails and do not log (expected) EBADF.
libratbox/src/kqueue.c