1
0
Fork 0
forked from mirror/openwrt
openwrt/package
Linus Kardell 0f47ce8180 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 2ac1a57677)
2018-11-22 13:56:37 +01:00
..
base-files base-files: fix unkillable processes after restart 2018-11-22 13:56:37 +01:00
boot grub2: rebase patches 2018-08-30 14:10:54 +02:00
devel perf: restrict libunwind dependency to archs that actually support libunwind 2018-02-25 17:07:32 +01:00
firmware firmware: amd64-microcode: update to 20180524 2018-08-09 01:04:18 +02:00
kernel mac80211: brcmfmac: add 2 more recent changes 2018-11-09 23:24:11 +01:00
libs libubox: update to latest git HEAD 2018-11-16 17:22:47 +01:00
network dropbear: backport upstream fix for CVE-2018-15599 2018-08-27 14:14:57 +02:00
system mtd: improve check for TRX header being already fixed 2018-07-17 07:17:48 +02:00
utils bzip2: Fix CVE-2016-3189 2018-08-30 13:15:06 +02:00
Makefile build: fix triggering opkg/host compilation 2017-04-09 15:42:20 +02:00