MCPcopy Create free account
hub / github.com/numpy/numpy / _PyArray_SigintHandler

Function _PyArray_SigintHandler

numpy/core/src/multiarray/multiarraymodule.c:4281–4296  ·  view source on GitHub ↗

NUMPY_API */

Source from the content-addressed store, hash-verified

4279/*NUMPY_API
4280 */
4281NPY_NO_EXPORT void
4282_PyArray_SigintHandler(int signum)
4283{
4284 PyOS_setsig(signum, SIG_IGN);
4285 /*
4286 * jump buffer may be uninitialized as SIGINT allowing functions are usually
4287 * run in other threads than the master thread that receives the signal
4288 */
4289 if (sigint_buf_init > 0) {
4290 NPY_SIGLONGJMP(_NPY_SIGINT_BUF, signum);
4291 }
4292 /*
4293 * sending SIGINT to the worker threads to cancel them is job of the
4294 * application
4295 */
4296}
4297
4298/*NUMPY_API
4299 */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected