Lines Matching refs:sig_num
170 trip_signal(int sig_num)
172 Handlers[sig_num].tripped = 1;
184 signal_handler(int sig_num)
190 pth_raise(*(pth_t *) main_thread, sig_num);
200 trip_signal(sig_num);
209 if (sig_num != SIGCHLD)
214 PyOS_setsig(sig_num, signal_handler);
269 int sig_num;
272 if (!PyArg_ParseTuple(args, "iO:signal", &sig_num, &obj))
275 /* Validate that sig_num is one of the allowable signals */
276 switch (sig_num) {
300 if (sig_num < 1 || sig_num >= NSIG) {
316 if (PyOS_setsig(sig_num, func) == SIG_ERR) {
320 old_handler = Handlers[sig_num].func;
321 Handlers[sig_num].tripped = 0;
323 Handlers[sig_num].func = obj;
342 int sig_num;
344 if (!PyArg_ParseTuple(args, "i:getsignal", &sig_num))
346 if (sig_num < 1 || sig_num >= NSIG) {
351 old_handler = Handlers[sig_num].func;
375 int sig_num;
378 if (!PyArg_ParseTuple(args, "ii:siginterrupt", &sig_num, &flag))
380 if (sig_num < 1 || sig_num >= NSIG) {
385 if (siginterrupt(sig_num, flag)<0) {