ela
Contents

ManualLanguage

Signals

In the terminalela --spec signals

Each part of what a signal does is said in one place:

  • Sending one to a job or a process, kill $job TERM or kill pid(4242): kill.
  • Handling one with a catch signal block, in place of Bash's trap, and what a signal no block covers does: catch signal.
  • What the jobs get when a signal ends the script or leaves a proc: Who waits. A job is in a process group of its own, so Ctrl-C at the terminal reaches the script and not its jobs.

What a signal does to a script: caught by a catch signal block, or ending it