trap: simplify example and add example (#15683)

This commit is contained in:
Managor
2025-02-06 19:08:56 +02:00
committed by GitHub
parent 1da2707ec9
commit c3b82e778c
+5 -1
View File
@@ -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}}`