From 241f42652d409ecec68463ca94861e6dea8d33a1 Mon Sep 17 00:00:00 2001 From: stransky Date: Tue, 21 Nov 2023 11:25:26 +0000 Subject: [PATCH] Bug 1837907 [Linux] Don't catch SIGTERM in nsProfileLock r=jld We want to handle SIGTERM gracefully and terminate Firefox by standard way. Differential Revision: https://phabricator.services.mozilla.com/D191077 --- toolkit/profile/nsProfileLock.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/toolkit/profile/nsProfileLock.cpp b/toolkit/profile/nsProfileLock.cpp index 0a809642aa62..eefb66606a3c 100644 --- a/toolkit/profile/nsProfileLock.cpp +++ b/toolkit/profile/nsProfileLock.cpp @@ -115,7 +115,6 @@ static struct sigaction SIGQUIT_oldact; static struct sigaction SIGILL_oldact; static struct sigaction SIGABRT_oldact; static struct sigaction SIGSEGV_oldact; -static struct sigaction SIGTERM_oldact; void nsProfileLock::FatalSignalHandler(int signo # ifdef SA_SIGINFO @@ -148,9 +147,6 @@ void nsProfileLock::FatalSignalHandler(int signo case SIGSEGV: oldact = &SIGSEGV_oldact; break; - case SIGTERM: - oldact = &SIGTERM_oldact; - break; default: MOZ_ASSERT_UNREACHABLE("bad signo"); break; @@ -387,7 +383,6 @@ nsresult nsProfileLock::LockWithSymlink(nsIFile* aLockFile, CATCH_SIGNAL(SIGILL); CATCH_SIGNAL(SIGABRT); CATCH_SIGNAL(SIGSEGV); - CATCH_SIGNAL(SIGTERM); # undef CATCH_SIGNAL }