Lines Matching defs:SIGINT

1690   sigaddset (&set, SIGINT);
1881 /* Unblock SIGINT and SIGCHLD unless creating a pipeline, in which case
2177 /* Make OLD_SIGINT_HANDLER the SIGINT signal handler. */
2186 set_signal_handler (SIGINT, old_sigint_handler);
2193 /* Handle SIGINT while we are waiting for children in a script to exit.
2207 /* If we got a SIGINT while in `wait', and SIGINT is trapped, do
2210 signal_is_trapped (SIGINT) &&
2211 ((sigint_handler = trap_to_sighandler (SIGINT)) == trap_handler))
2214 trap_handler (SIGINT); /* set pending_traps[SIGINT] */
2215 wait_signal_received = SIGINT;
2224 as if it got the SIGINT interrupt. */
2227 /* Otherwise effectively ignore the SIGINT and allow the running job to
2354 received, only if one of the jobs run is killed via SIGINT. If
2365 old_sigint_handler = set_signal_handler (SIGINT, wait_sigint_handler);
2367 set_signal_handler (SIGINT, old_sigint_handler);
2447 if the foreground process has died due to SIGINT and jump out
2449 old SIGINT signal handler. */
2525 by SIGINT, then print a newline to compensate for the kernel
2528 WIFSIGNALED (s) && WTERMSIG (s) == SIGINT)
2530 /* If SIGINT is not trapped and the shell is in a for, while,
2531 or until loop, act as if the shell received SIGINT as
2533 SIGINT signal handler; maybe it should. */
2534 if (signal_is_trapped (SIGINT) == 0 && (loop_level || (shell_compatibility_level > 32 && executing_list)))
2546 substitution, simulate getting and being killed by the SIGINT to
2550 if (WIFSIGNALED (s) && WTERMSIG (s) == SIGINT && signal_is_trapped (SIGINT) == 0)
2554 old_sigint_handler = set_signal_handler (SIGINT, SIG_DFL);
2558 kill (getpid (), SIGINT);
2579 /* Restore the original SIGINT signal handler before we return. */
3164 Currently, the cleanup activity is restricted to handling any SIGINT
3253 * Currently, we just do special things if we got a SIGINT while waiting
3259 /* If we're running a shell script and we get a SIGINT with a
3260 SIGINT trap handler, but the foreground job handles it and
3261 does not exit due to SIGINT, run the trap handler but do not
3265 signal_is_trapped (SIGINT))
3273 tstatus = maybe_call_trap_handler (SIGINT);
3277 /* If the foreground job is killed by SIGINT when job control is not
3281 SIGINT came from the keyboard (in which case the shell has already
3285 SIGINT, it needs to perform normal SIGINT processing. */
3286 else if (wait_sigint_received && (WTERMSIG (child->status) == SIGINT) &&
3293 /* If SIGINT is trapped, set the exit status so that the trap
3295 if (signal_is_trapped (SIGINT))
3305 tstatus = maybe_call_trap_handler (SIGINT);
3309 /* wait_sigint_handler () has already seen SIGINT and
3311 call the original SIGINT handler, if necessary. If
3318 of a trap caught on SIGINT, then old_sigint_handler
3320 SIGINT (if we reset the sighandler to the default).
3322 if (temp_handler == trap_handler && signal_is_trapped (SIGINT) == 0)
3323 temp_handler = trap_to_sighandler (SIGINT);
3326 termsig_handler (SIGINT);
3328 (*temp_handler) (SIGINT);
3480 except SIGINT (and possibly SIGPIPE). */
3485 termsig != SIGINT &&
3498 if (termsig && WIFSIGNALED (s) && termsig != SIGINT)
3500 if (termsig && WIFSIGNALED (s) && termsig != SIGINT && termsig != SIGPIPE)
3761 set_signal_handler (SIGINT, sigint_sighandler);