mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
In the Unix version, arrange for sigcheck() to be called via
Py_AddPendingCall(). This avoids having to call sigcheck() in the ticker code in ceval.c's main interpreter loop.
This commit is contained in:
parent
1aa14838d2
commit
ad74fa6674
1 changed files with 3 additions and 0 deletions
|
@ -137,6 +137,8 @@ PyErr_SetInterrupt()
|
|||
interrupted = 1;
|
||||
}
|
||||
|
||||
extern int sigcheck();
|
||||
|
||||
/* ARGSUSED */
|
||||
static RETSIGTYPE
|
||||
#ifdef _M_IX86
|
||||
|
@ -161,6 +163,7 @@ intcatcher(sig)
|
|||
break;
|
||||
}
|
||||
signal(SIGINT, intcatcher);
|
||||
Py_AddPendingCall(sigcheck, NULL);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue