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
This commit is contained in:
stransky 2023-11-21 11:25:26 +00:00
parent dde16881f2
commit 241f42652d

View File

@ -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
}