X-Git-Url: https://git.distorted.org.uk/~mdw/mLib-python/blobdiff_plain/b3c87d862e8f44754113ee9bf374e9fcfbc9e7ac..b51b6cf0b65c84c7b9e130719beede595cc1bfbd:/sel-base.pyx diff --git a/sel-base.pyx b/sel-base.pyx index 6a5e2c3..e7b4fbe 100644 --- a/sel-base.pyx +++ b/sel-base.pyx @@ -28,11 +28,7 @@ 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)