mirror of
https://github.com/python/cpython.git
synced 2024-11-28 12:31:14 +08: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
@ -283,6 +283,12 @@ PyOS_CheckStack()
|
||||
#endif /* USE_STACKCHECK */
|
||||
|
||||
#if !TARGET_API_MAC_OSX
|
||||
void
|
||||
PyErr_SetInterrupt(void)
|
||||
{
|
||||
interrupted = 1;
|
||||
}
|
||||
|
||||
/* The catcher routine (which may not be used for all compilers) */
|
||||
static RETSIGTYPE
|
||||
intcatcher(sig)
|
||||
|
Loading…
Reference in New Issue
Block a user