aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src/nand_ecc.c
diff options
context:
space:
mode:
authorLinus Kardell <linus@telliq.com>2018-11-22 11:35:08 +0100
committerJo-Philipp Wich <jo@mein.io>2018-11-22 13:55:58 +0100
commit709d080da5c357d7139044b668bacf1d154fc976 (patch)
tree7949e18416df51fb2b2dd87bda77767b1425e9d8 /tools/firmware-utils/src/nand_ecc.c
parent216c04ff208f8bc8a268123a325a01c0a5d78004 (diff)
downloadupstream-709d080da5c357d7139044b668bacf1d154fc976.tar.gz
upstream-709d080da5c357d7139044b668bacf1d154fc976.tar.bz2
upstream-709d080da5c357d7139044b668bacf1d154fc976.zip
base-files: fix unkillable processes after restart
When restart is run on an init script, the script traps SIGTERM. This is done as a workaround for scripts named the same name as the program they start. In that case, the init script process will have the same name as the program process, and so when the init script runs killall, it will kill itself. So SIGTERM is trapped to make the init script unkillable. However, the trap is retained when the init script runs start, and thus processes started by restart will not respond to SIGTERM, and will thus be unkillable unless you use SIGKILL. This fixes that by removing the trap before running start. Signed-off-by: Linus Kardell <linus@telliq.com> (cherry picked from commit 2ac1a57677ce4e21513dca2a8efab1eb6e0a9c58)
Diffstat (limited to 'tools/firmware-utils/src/nand_ecc.c')
0 files changed, 0 insertions, 0 deletions