mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
trap: refresh page (#23480)
Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>
This commit is contained in:
+3
-3
@@ -13,12 +13,12 @@
|
||||
|
||||
- Execute a command when a signal is received:
|
||||
|
||||
`trap 'echo "Caught signal {{SIGHUP}}"' {{SIGHUP}}`
|
||||
`trap 'echo "Caught signal {{SIGHUP}}"' {{[HUP|SIGHUP]}}`
|
||||
|
||||
- Remove commands:
|
||||
|
||||
`trap - {{SIGHUP}} {{SIGINT}}`
|
||||
`trap - {{SIGHUP SIGINT ...}}`
|
||||
|
||||
- Ignore a signal:
|
||||
|
||||
`trap '' {{SIGINT}}`
|
||||
`trap '' {{[INT|SIGINT]}}`
|
||||
|
||||
Reference in New Issue
Block a user