Commit ad74fa66 authored by Guido van Rossum's avatar Guido van Rossum

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.
parent 1aa14838
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment