From 1f8ef6fa2fb5d79799371f8bf745824b78bc48f2 Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Wed, 20 Aug 2014 17:38:41 -0700 Subject: Fix fault handler to unregister on shutdown This fixes a problem with the fault handler where it wasn't unregistering itself during shutdown of the runtime. Bug: 17133266 (cherry picked from commit e8b9afcd0cd86b8808af29a97332038aab70c604) Change-Id: I1a4ec4292ec049046dda30769265680201729efb --- sigchainlib/sigchain.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sigchainlib') diff --git a/sigchainlib/sigchain.cc b/sigchainlib/sigchain.cc index 6f93083..2ba7405 100644 --- a/sigchainlib/sigchain.cc +++ b/sigchainlib/sigchain.cc @@ -45,8 +45,8 @@ class SignalAction { // Unclaim the signal and restore the old action. void Unclaim(int signal) { - claimed_ = false; sigaction(signal, &action_, NULL); // Restore old action. + claimed_ = false; } // Get the action associated with this signal. @@ -164,7 +164,6 @@ int sigaction(int signal, const struct sigaction* new_action, struct sigaction* return linked_sigaction(signal, new_action, old_action); } - int sigprocmask(int how, const sigset_t* bionic_new_set, sigset_t* bionic_old_set) { const sigset_t* new_set_ptr = bionic_new_set; sigset_t tmpset; -- cgit v1.1