Chapter 12. Catching signals

Table of Contents
12.1. Signals
12.1.1. Introduction
12.1.2. Usage of signals with kill
12.2. Traps
12.2.1. General
12.2.2. How Bash interprets traps
12.2.3. More examples
12.3. Summary
12.4. Exercises

In this chapter, we will discuss the following subjects:

  • Available signals

  • Use of the signals

  • Use of the trap statement

  • How to prevent users from interrupting your programs