extend code to cope with edge triggered event notification add io_eagain() so that you can notify io_wait if accept() returned EAGAIN