This avoids having to call sigcheck() (the same routine by its old
name :-) in the ticker code in ceval.c's main interpreter loop.
#endif
is_tripped++;
Handlers[sig_num].tripped = 1;
+ Py_AddPendingCall((int (*) Py_PROTO((ANY *)))PyErr_CheckSignals, NULL);
#ifdef WITH_THREAD
}
#endif
Py_DECREF(arglist);
}
if (!result)
- return 1;
+ return -1;
Py_DECREF(result);
}
{
is_tripped++;
Handlers[SIGINT].tripped = 1;
+ Py_AddPendingCall((int (*) Py_PROTO((ANY *)))PyErr_CheckSignals, NULL);
}
void