cdef sel_state _sel
def select():
- cdef int rc
- PyEval_ReleaseLock()
- rc = sel_select(&_sel)
- PyEval_AcquireLock()
- if rc and errno != EINTR and errno != EAGAIN:
+ if sel_select(&_sel) and errno != EINTR and errno != EAGAIN:
_oserror()
sel_init(&_sel)