From 9c5d4822653b7c1b1cc4984a83114df7e0bf52da Mon Sep 17 00:00:00 2001 From: cutecutecat Date: Wed, 28 Feb 2024 21:22:26 +0800 Subject: [PATCH] fix: remove sighup handler Signed-off-by: cutecutecat --- src/bgworker/normal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bgworker/normal.rs b/src/bgworker/normal.rs index 7979f9449..8d722d139 100644 --- a/src/bgworker/normal.rs +++ b/src/bgworker/normal.rs @@ -41,12 +41,12 @@ pub fn normal(worker: Arc) { unsafe { let mut set: libc::sigset_t = std::mem::zeroed(); libc::sigemptyset(&mut set); - libc::sigaddset(&mut set, libc::SIGHUP); + libc::sigaddset(&mut set, libc::SIGQUIT); libc::sigaddset(&mut set, libc::SIGTERM); libc::sigwait(&set, &mut sig); } match sig { - libc::SIGHUP => { + libc::SIGQUIT => { std::process::exit(0); } libc::SIGTERM => {