mirror of
https://github.com/python/cpython.git
synced 2025-09-04 07:51:13 +00:00
This closes patch:
[ 960406 ] unblock signals in threads although the changes do not correspond exactly to any patch attached to that report. Non-main threads no longer have all signals masked. A different interface to readline is used. The handling of signals inside calls to PyOS_Readline is now rather different. These changes are all a bit scary! Review and cross-platform testing much appreciated.
This commit is contained in:
parent
e3c330b42a
commit
30ea2f223f
10 changed files with 1576 additions and 3095 deletions
|
@ -1589,7 +1589,8 @@ builtin_raw_input(PyObject *self, PyObject *args)
|
|||
prompt);
|
||||
Py_XDECREF(po);
|
||||
if (s == NULL) {
|
||||
PyErr_SetNone(PyExc_KeyboardInterrupt);
|
||||
if (!PyErr_Occurred())
|
||||
PyErr_SetNone(PyExc_KeyboardInterrupt);
|
||||
return NULL;
|
||||
}
|
||||
if (*s == '\0') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue