➜

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.

作者 eryksun
收信人 eryksun, hafizbilal100, paul.moore, steve.dower, tim.golden, zach.ware
日期 2020-09-01.15:53:25
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1598975605.34.0.766954548134.issue41686@roundup.psfhosted.org>
In-reply-to
内容
The SIGINT event gets created when the _signal extension module is imported. Until then, _PyOS_SigintEvent() returns NULL. But currently all code that calls _PyOS_SigintEvent() assumes it returns a valid handle. This has to be fixed to support Py_InitializeEx(0). 

For example, pysleep could call WinAPI Sleep on the main thread if the interrupt event isn't configured:

        ul_millis = (unsigned long)millisecs;
        hInterruptEvent = _PyOS_SigintEvent();

        if (ul_millis == 0 || !hInterruptEvent || !_PyOS_IsMainThread()) {
            Py_BEGIN_ALLOW_THREADS
            Sleep(ul_millis);
            Py_END_ALLOW_THREADS
            break;
        }
历史
日期 用户 动作 参数
2020-09-01 15:53:25eryksun修改recipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, hafizbilal100
2020-09-01 15:53:25eryksun修改messageid: <1598975605.34.0.766954548134.issue41686@roundup.psfhosted.org>
2020-09-01 15:53:25eryksun链接issue41686 messages
2020-09-01 15:53:25eryksun创建