• Pierre Ynard's avatar
    lua: fix polling · ce00244d
    Pierre Ynard authored
    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.
    ce00244d
host.lua 10.2 KB