Chapter 12. Catching signals

Table of Contents

1. Signals
1.1. Introduction
1.2. Usage of signals with kill
2. Traps
2.1. General
2.2. How Bash interprets traps
2.3. More examples
3. Summary
4. Exercises

Abstract

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