ยปCore Development>Code coverage>Python/sigcheck.c

Python code coverage for Python/sigcheck.c

#countcontent
1n/a
2n/a/* Sigcheck is similar to intrcheck() but sets an exception when an
3n/a interrupt occurs. It can't be in the intrcheck.c file since that
4n/a file (and the whole directory it is in) doesn't know about objects
5n/a or exceptions. It can't be in errors.c because it can be
6n/a overridden (at link time) by a more powerful version implemented in
7n/a signalmodule.c. */
8n/a
9n/a#include "Python.h"
10n/a
11n/a/* ARGSUSED */
12n/aint
13n/aPyErr_CheckSignals(void)
14n/a{
15n/a if (!PyOS_InterruptOccurred())
16n/a return 0;
17n/a PyErr_SetNone(PyExc_KeyboardInterrupt);
18n/a return -1;
19n/a}