mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
MacPython-OS9 has its own copy of the interrupt handling code. Added PyErr_SetInterrupt() here too.
This commit is contained in:
parent
1fb83c155f
commit
18452a4bf2
1 changed files with 6 additions and 0 deletions
|
|
@ -283,6 +283,12 @@ PyOS_CheckStack()
|
||||||
#endif /* USE_STACKCHECK */
|
#endif /* USE_STACKCHECK */
|
||||||
|
|
||||||
#if !TARGET_API_MAC_OSX
|
#if !TARGET_API_MAC_OSX
|
||||||
|
void
|
||||||
|
PyErr_SetInterrupt(void)
|
||||||
|
{
|
||||||
|
interrupted = 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* The catcher routine (which may not be used for all compilers) */
|
/* The catcher routine (which may not be used for all compilers) */
|
||||||
static RETSIGTYPE
|
static RETSIGTYPE
|
||||||
intcatcher(sig)
|
intcatcher(sig)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue