From 5daf18084f8d2865db24b6627d2d28d9234bcf5c Mon Sep 17 00:00:00 2001
From: renoseven <dev@renoseven.net>
Date: Mon, 10 Feb 2025 10:49:49 +0800
Subject: [PATCH] all: remove signal handler

Signed-off-by: renoseven <dev@renoseven.net>
---
 syscare-build/Cargo.toml  | 1 -
 syscare-build/src/main.rs | 6 ------
 upatch-build/Cargo.toml   | 1 -
 upatch-build/src/main.rs  | 6 ------
 4 files changed, 14 deletions(-)

diff --git a/syscare-build/Cargo.toml b/syscare-build/Cargo.toml
index 558b2bc..ba4d1c8 100644
--- a/syscare-build/Cargo.toml
+++ b/syscare-build/Cargo.toml
@@ -14,7 +14,6 @@ syscare-common = { package = "syscare-common", path = "../syscare-common" }
 anyhow         = { version = "1.0" }
 clap           = { version = "3.2", features = ["derive"] }
 chrono         = { version = "0.4" }
-ctrlc          = { version = "3.3" }
 flexi_logger   = { version = "0.24" }
 lazy_static    = { version = "1.0" }
 log            = { version = "0.4" }
diff --git a/syscare-build/src/main.rs b/syscare-build/src/main.rs
index 2fb714d..64363bf 100644
--- a/syscare-build/src/main.rs
+++ b/syscare-build/src/main.rs
@@ -103,12 +103,6 @@ impl SyscareBuild {
             .start()
             .context("Failed to initialize logger")?;
 
-        // Initialize signal handler
-        ctrlc::set_handler(|| {
-            eprintln!("Interrupt");
-        })
-        .context("Failed to initialize signal handler")?;
-
         Ok(Self {
             args,
             logger,
diff --git a/upatch-build/Cargo.toml b/upatch-build/Cargo.toml
index 5123149..88d88b3 100644
--- a/upatch-build/Cargo.toml
+++ b/upatch-build/Cargo.toml
@@ -12,7 +12,6 @@ build        = "build.rs"
 syscare-common = { package = "syscare-common", path = "../syscare-common" }
 anyhow         = { version = "1.0" }
 clap           = { version = "3.2", features = ["cargo", "derive"] }
-ctrlc          = { version = "3.3" }
 flexi_logger   = { version = "0.24" }
 function_name  = { version = "0.3" }
 gimli          = { version = "0.26" }
diff --git a/upatch-build/src/main.rs b/upatch-build/src/main.rs
index 77b256a..09f907b 100644
--- a/upatch-build/src/main.rs
+++ b/upatch-build/src/main.rs
@@ -98,12 +98,6 @@ impl UpatchBuild {
             .start()
             .context("Failed to initialize logger")?;
 
-        // Initialize signal handler
-        ctrlc::set_handler(|| {
-            eprintln!("Interrupt");
-        })
-        .context("Failed to initialize signal handler")?;
-
         Ok(Self {
             args,
             logger,
-- 
2.34.1

