[issue11859] test_interrupted_write_text() of test_io failed of Python 3.3 on FreeBSD 7.2

STINNER Victor report at bugs.python.org
Sun Apr 17 01:23:54 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

One solution to fix this problem is to use pthread_sigmask() on the _read() thread to not handle SIGARLM. For example, the faulthandler uses the following code to not handle any thread in its timeout thread:

#ifdef HAVE_PTHREAD_H
    sigset_t set;

    /* we don't want to receive any signal */
    sigfillset(&set);
#if defined(HAVE_PTHREAD_SIGMASK) && !defined(HAVE_BROKEN_PTHREAD_SIGMASK)
    pthread_sigmask(SIG_SETMASK, &set, NULL);
#else
    sigprocmask(SIG_SETMASK, &set, NULL);
#endif
#endif

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11859>
_______________________________________


More information about the Python-bugs-list mailing list