Pattern: Use of trap
with SIGKILL/SIGSTOP
Issue: -
SIGKILL and SIGSTOP cannot be caught/ignored according to POSIX and as implemented on platforms including Linux and FreeBSD. Trying to trap this signal has undefined results.
Example of incorrect code:
trap 'echo "unkillable"' KILL
Example of correct code:
Not applicable. This is not possible.