From c3b82e778caab158ee5ef794839b864934b72b4f Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Thu, 6 Feb 2025 19:08:56 +0200 Subject: [PATCH] trap: simplify example and add example (#15683) --- pages/linux/trap.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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}}`