From 59d44ad951d7ed8017b06bb70f2845ec0cbbd359 Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 31 Oct 2015 17:34:32 -0700 Subject: [PATCH] Created SC2173 (markdown) --- SC2173.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 SC2173.md diff --git a/SC2173.md b/SC2173.md new file mode 100644 index 0000000..c91b244 --- /dev/null +++ b/SC2173.md @@ -0,0 +1,19 @@ +## SIGKILL/SIGSTOP can not be trapped. + +### Problematic code: + +```sh +trap 'echo "unkillable"' KILL +``` + +### Correct code: + +Not applicable. This is not possible. + +### Rationale: + +SIGKILL and SIGSTOP can not be caught/ignored (according to POSIX and as implemented on platforms including Linux and FreeBSD). Trying to trap this signal has undefined results. + +### Exceptions: + +None. If you come across one, please file an issue about it. \ No newline at end of file