Searched refs:signalnum (Results 1 – 6 of 6) sorted by relevance
/external/chromium-trace/catapult/devil/devil/utils/ |
D | signal_handler.py | 10 def SignalHandler(signalnum, handler): argument 17 existing_handler = signal.getsignal(signalnum) 20 signal.signal(signalnum, handler) 23 signal.signal(signalnum, existing_handler) 27 def AddSignalHandler(signalnum, additional_handler): argument 37 existing_handler = signal.getsignal(signalnum) 45 signal.signal(signalnum, handler) 48 signal.signal(signalnum, existing_handler)
|
/external/python/cpython3/Modules/clinic/ |
D | signalmodule.c.h | 80 signal_signal_impl(PyObject *module, int signalnum, PyObject *handler); 86 int signalnum; in signal_signal() local 90 &signalnum, &handler)) { in signal_signal() 93 return_value = signal_signal_impl(module, signalnum, handler); in signal_signal() 115 signal_getsignal_impl(PyObject *module, int signalnum); 121 int signalnum; in signal_getsignal() local 123 if (!PyArg_Parse(arg, "i:getsignal", &signalnum)) { in signal_getsignal() 126 return_value = signal_getsignal_impl(module, signalnum); in signal_getsignal() 147 signal_siginterrupt_impl(PyObject *module, int signalnum, int flag); 153 int signalnum; in signal_siginterrupt() local [all …]
|
/external/python/cpython3/Modules/ |
D | signalmodule.c | 397 signal_signal_impl(PyObject *module, int signalnum, PyObject *handler) in signal_signal_impl() argument 404 switch (signalnum) { in signal_signal_impl() 428 if (signalnum < 1 || signalnum >= NSIG) { in signal_signal_impl() 444 if (PyOS_setsig(signalnum, func) == SIG_ERR) { in signal_signal_impl() 448 old_handler = Handlers[signalnum].func; in signal_signal_impl() 449 Handlers[signalnum].tripped = 0; in signal_signal_impl() 451 Handlers[signalnum].func = handler; in signal_signal_impl() 475 signal_getsignal_impl(PyObject *module, int signalnum) in signal_getsignal_impl() argument 479 if (signalnum < 1 || signalnum >= NSIG) { in signal_getsignal_impl() 484 old_handler = Handlers[signalnum].func; in signal_getsignal_impl() [all …]
|
/external/python/cpython3/Lib/ |
D | signal.py | 46 def signal(signalnum, handler): argument 47 handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler)) 52 def getsignal(signalnum): argument 53 handler = _signal.getsignal(signalnum)
|
/external/python/cpython2/Doc/library/ |
D | signal.rst | 146 .. function:: getsignal(signalnum) 148 Return the current signal handler for the signal *signalnum*. The returned value 210 .. function:: siginterrupt(signalnum, flag) 213 calls will be restarted when interrupted by signal *signalnum*, otherwise 224 .. function:: signal(signalnum, handler) 226 Set the handler for signal *signalnum* to the function *handler*. *handler* can
|
/external/python/cpython3/Doc/library/ |
D | signal.rst | 199 .. function:: getsignal(signalnum) 201 Return the current signal handler for the signal *signalnum*. The returned value 220 .. function:: pthread_kill(thread_id, signalnum) 222 Send the signal *signalnum* to the thread *thread_id*, another thread in the 234 If *signalnum* is 0, then no signal is sent, but error checking is still 323 .. function:: siginterrupt(signalnum, flag) 326 calls will be restarted when interrupted by signal *signalnum*, otherwise 335 .. function:: signal(signalnum, handler) 337 Set the handler for signal *signalnum* to the function *handler*. *handler* can
|