summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2022-01-07 16:53:07 +0100
committerLeah Neukirchen <leah@vuxu.org>2022-01-07 16:53:07 +0100
commit258eda0337e0e4d5502657e96f8e793627f68457 (patch)
treeeebd39f0730c7790c323f3074509fde6aec7e205
parent366c535d93aa3a8ad44f56ca1e024bb9e26bf11c (diff)
downloadrvnit-258eda0337e0e4d5502657e96f8e793627f68457.tar.gz
rvnit-258eda0337e0e4d5502657e96f8e793627f68457.tar.xz
rvnit-258eda0337e0e4d5502657e96f8e793627f68457.zip
reboot on SIGINT, as this is what ctrl-alt-del will send
Perhaps make this configurable at some point.
-rw-r--r--rvnit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rvnit.c b/rvnit.c
index f427fe1..6e8de20 100644
--- a/rvnit.c
+++ b/rvnit.c
@@ -65,6 +65,7 @@ on_sigint(int sig)
 {
 	(void)sig;
 	want_shutdown = 1;
+	want_reboot = 1;
 }
 
 void