OSDN Git Service

init: handle ctrl-alt-del event
authorChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 20 Nov 2017 08:50:20 +0000 (16:50 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 17 Dec 2019 05:24:56 +0000 (13:24 +0800)
commit961a88ab78ace6b5d76ef7ac1c22f92d3ab2f64d
treeed1454a9fb83c2a76b609563a08d37b632e75c90
parent9ab24048d625254825ddb51bb7368186615e7d9f
init: handle ctrl-alt-del event

By setting /proc/sys/kernel/ctrl-alt-del to 1, kernel will trap
ctrl-alt-del event and send a SIGINT signal to init.

Start the ctrl-alt-del service on receiving the signal.
init/reboot_utils.cpp