diff --git a/pages/linux/trap.md b/pages/linux/trap.md index bdc37ee45c..0c4225d892 100644 --- a/pages/linux/trap.md +++ b/pages/linux/trap.md @@ -9,7 +9,7 @@ - List the commands and the names of the expected events: -`trap -p` +`trap` - Execute a command when a signal is received: @@ -18,3 +18,7 @@ - Remove commands: `trap - {{SIGHUP}} {{SIGINT}}` + +- Ignore a signal: + +`trap '' {{SIGINT}}`