From ea6a97ea02fbf6fe42f7f4f6d111d99a0551def1 Mon Sep 17 00:00:00 2001 From: Giuseppe Calderaro Date: Thu, 14 Apr 2011 09:15:17 +0100 Subject: [PATCH] kvm tools: Remove unused handle_sigint() function Removed handle_sigint. SIGINT is now passed to the guest. Signed-off-by: Pekka Enberg --- kvm-run.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kvm-run.c b/kvm-run.c index ad6d2bf..454a61c 100644 --- a/kvm-run.c +++ b/kvm-run.c @@ -43,11 +43,6 @@ static struct kvm *kvm; static struct kvm_cpu *kvm_cpus[KVM_NR_CPUS]; static __thread struct kvm_cpu *current_kvm_cpu; -static void handle_sigint(int sig) -{ - exit(1); -} - static void handle_sigquit(int sig) { serial8250__inject_sysrq(kvm); @@ -171,7 +166,6 @@ int kvm_cmd_run(int argc, const char **argv, const char *prefix) signal(SIGALRM, handle_sigalrm); signal(SIGQUIT, handle_sigquit); - signal(SIGINT, handle_sigint); while (argc != 0) { argc = parse_options(argc, argv, options, run_usage,