Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 18452a4

Browse files
committed
MacPython-OS9 has its own copy of the interrupt handling code. Added PyErr_SetInterrupt() here too.
1 parent 1fb83c1 commit 18452a4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Mac/Python/macglue.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,12 @@ PyOS_CheckStack()
283283
#endif /* USE_STACKCHECK */
284284

285285
#if !TARGET_API_MAC_OSX
286+
void
287+
PyErr_SetInterrupt(void)
288+
{
289+
interrupted = 1;
290+
}
291+
286292
/* The catcher routine (which may not be used for all compilers) */
287293
static RETSIGTYPE
288294
intcatcher(sig)

0 commit comments

Comments
 (0)