X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib-python/blobdiff_plain/b3c87d862e8f44754113ee9bf374e9fcfbc9e7ac..95920c4fcd363969a497f6fe1fe35e0b95ca082b:/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)