Mercurial > cpython-lru_cache-weakref
diff Python/ceval.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 | d4a59230e93a |
| children | 87d196e1c2d0 |
line wrap: on
line diff
--- a/Python/ceval.c Wed Jul 07 15:59:49 2004 +0000 +++ b/Python/ceval.c Wed Jul 07 17:44:12 2004 +0000 @@ -318,7 +318,7 @@ int Py_AddPendingCall(int (*func)(void *), void *arg) { - static int busy = 0; + static volatile int busy = 0; int i, j; /* XXX Begin critical section */ /* XXX If you want this to be safe against nested
