comparison Python/pythonrun.c @ 32526:78bd25b42d46 legacy-trunk

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.
author Michael W. Hudson <mwh@python.net>
date Wed, 07 Jul 2004 17:44:12 +0000
parents 846b3ee7e106
children caaef302f1e3
comparison
equal deleted inserted replaced
32525:ec5d0e873964 32526:78bd25b42d46
1433 break; 1433 break;
1434 case E_EOLS: 1434 case E_EOLS:
1435 msg = "EOL while scanning single-quoted string"; 1435 msg = "EOL while scanning single-quoted string";
1436 break; 1436 break;
1437 case E_INTR: 1437 case E_INTR:
1438 PyErr_SetNone(PyExc_KeyboardInterrupt); 1438 if (!PyErr_Occurred())
1439 PyErr_SetNone(PyExc_KeyboardInterrupt);
1439 Py_XDECREF(v); 1440 Py_XDECREF(v);
1440 return; 1441 return;
1441 case E_NOMEM: 1442 case E_NOMEM:
1442 PyErr_NoMemory(); 1443 PyErr_NoMemory();
1443 Py_XDECREF(v); 1444 Py_XDECREF(v);