mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
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:
parent
dde16881f2
commit
241f42652d
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user