Lines Matching refs:sig_num
167 trip_signal(int sig_num)
169 Handlers[sig_num].tripped = 1;
181 signal_handler(int sig_num)
187 pth_raise(*(pth_t *) main_thread, sig_num);
197 trip_signal(sig_num);
206 if (sig_num != SIGCHLD)
211 PyOS_setsig(sig_num, signal_handler);
266 int sig_num;
269 if (!PyArg_ParseTuple(args, "iO:signal", &sig_num, &obj))
272 /* Validate that sig_num is one of the allowable signals */
273 switch (sig_num) {
297 if (sig_num < 1 || sig_num >= NSIG) {
317 if (PyOS_setsig(sig_num, func) == SIG_ERR) {
321 old_handler = Handlers[sig_num].func;
323 Handlers[sig_num].func = obj;
345 int sig_num;
347 if (!PyArg_ParseTuple(args, "i:getsignal", &sig_num))
349 if (sig_num < 1 || sig_num >= NSIG) {
354 old_handler = Handlers[sig_num].func;
383 int sig_num;
386 if (!PyArg_ParseTuple(args, "ii:siginterrupt", &sig_num, &flag))
388 if (sig_num < 1 || sig_num >= NSIG) {
393 if (siginterrupt(sig_num, flag)<0) {