signal: handle SIGUSR1 as halt
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Sat, 13 Dec 2025 10:31:03 +0000 (19:31 +0900)
committerAlexander Couzens <lynxis@fe80.eu>
Fri, 13 Feb 2026 10:11:48 +0000 (11:11 +0100)
commit9493a3dcb48b9b3e197e9edfc37304fcd1b5acae
treeb07f9a358178cd3526a6ec78563ac0f22a4611f8
parent4dd22d022f9fa05fda1871505a003cb40378ff3e
signal: handle SIGUSR1 as halt

The SIGUSR1 (10) signal sent from BusyBox halt is for halt, so set the
RB_HALT_SYSTEM to event instead of RB_POWER_OFF for system call.

Link: https://github.com/openwrt/procd/pull/25/commits
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
signal.c