This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tumert
Recipients asksol, jnoller, ryles, trent, tumert
Date 2014-06-22.15:56:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403452614.04.0.00351163700952.issue6362@psf.upfronthosting.co.za>
In-reply-to
Content
Looks like the suggested fix is there in v2.7.6:

do {
        Py_BEGIN_ALLOW_THREADS
        if (blocking && timeout_obj == Py_None)
            res = sem_wait(self->handle);
        else if (!blocking)
            res = sem_trywait(self->handle);
        else
            res = sem_timedwait(self->handle, &deadline);
        Py_END_ALLOW_THREADS
        err = errno;
        if (res == MP_EXCEPTION_HAS_BEEN_SET)
            break;
    } while (res < 0 && errno == EINTR && !PyErr_CheckSignals());

    if (res < 0) {
        errno = err;
        if (errno == EAGAIN || errno == ETIMEDOUT)
            Py_RETURN_FALSE;
        else if (errno == EINTR)
            return NULL;
        else
            return PyErr_SetFromErrno(PyExc_OSError);
    }


But I am still able to reproduce the issue following the exact same steps written.
History
Date User Action Args
2014-06-22 15:56:54tumertsetrecipients: + tumert, trent, jnoller, ryles, asksol
2014-06-22 15:56:54tumertsetmessageid: <1403452614.04.0.00351163700952.issue6362@psf.upfronthosting.co.za>
2014-06-22 15:56:53tumertlinkissue6362 messages
2014-06-22 15:56:53tumertcreate