lua: fix polling
poll() revents are flags, and the lua module tests for equality... Obviously this has been working merely by accident given that a remote host resetting a connection generates only POLLIN, and neither POLLHUP nor POLLERR. lua doesn't support bitwise operators so this is the simplest way.
Showing
Please register or sign in to comment