From 78170e0fd48f2e7048a9c1b075639af909fe3477 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 4 Aug 2015 22:31:01 -0400 Subject: [PATCH] Signal: Removed useless attempt to trap SIGKILL --- src/TDB2.cpp | 2 -- src/commands/CmdSync.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/TDB2.cpp b/src/TDB2.cpp index 9ef96c5fe..4e6d1c705 100644 --- a/src/TDB2.cpp +++ b/src/TDB2.cpp @@ -636,7 +636,6 @@ void TDB2::commit () // Ignore harmful signals. signal (SIGHUP, SIG_IGN); signal (SIGINT, SIG_IGN); - signal (SIGKILL, SIG_IGN); signal (SIGPIPE, SIG_IGN); signal (SIGTERM, SIG_IGN); signal (SIGUSR1, SIG_IGN); @@ -655,7 +654,6 @@ void TDB2::commit () // Restore signal handling. signal (SIGHUP, SIG_DFL); signal (SIGINT, SIG_DFL); - signal (SIGKILL, SIG_DFL); signal (SIGPIPE, SIG_DFL); signal (SIGTERM, SIG_DFL); signal (SIGUSR1, SIG_DFL); diff --git a/src/commands/CmdSync.cpp b/src/commands/CmdSync.cpp index 78d6f0e86..4f52d9e01 100644 --- a/src/commands/CmdSync.cpp +++ b/src/commands/CmdSync.cpp @@ -171,7 +171,6 @@ int CmdSync::execute (std::string& output) // Ignore harmful signals. signal (SIGHUP, SIG_IGN); signal (SIGINT, SIG_IGN); - signal (SIGKILL, SIG_IGN); signal (SIGPIPE, SIG_IGN); signal (SIGTERM, SIG_IGN); signal (SIGUSR1, SIG_IGN); @@ -322,7 +321,6 @@ int CmdSync::execute (std::string& output) // Restore signal handling. signal (SIGHUP, SIG_DFL); signal (SIGINT, SIG_DFL); - signal (SIGKILL, SIG_DFL); signal (SIGPIPE, SIG_DFL); signal (SIGTERM, SIG_DFL); signal (SIGUSR1, SIG_DFL);