Ignore SIGHUP from SLPlugin processes. (#1627)
Under rosetta2, terminating SLPlugin child processes that would normally send SIGCHILD seem to be now sending SIGHUP. we should not terminate the viewer in this case.master
parent
24586f810e
commit
3aaab6ae65
|
|
@ -586,9 +586,10 @@ void default_unix_signal_handler(int signum, siginfo_t *info, void *)
|
|||
switch (signum)
|
||||
{
|
||||
case SIGCHLD:
|
||||
case SIGHUP:
|
||||
if (LLApp::sLogInSignal)
|
||||
{
|
||||
LL_INFOS() << "Signal handler - Got SIGCHLD from " << info->si_pid << LL_ENDL;
|
||||
LL_INFOS() << "Signal handler - Got SIGCHLD or SIGHUP from " << info->si_pid << LL_ENDL;
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
@ -603,11 +604,10 @@ void default_unix_signal_handler(int signum, siginfo_t *info, void *)
|
|||
raise(signum);
|
||||
return;
|
||||
case SIGINT:
|
||||
case SIGHUP:
|
||||
case SIGTERM:
|
||||
if (LLApp::sLogInSignal)
|
||||
{
|
||||
LL_WARNS() << "Signal handler - Got SIGINT, HUP, or TERM, exiting gracefully" << LL_ENDL;
|
||||
LL_WARNS() << "Signal handler - Got SIGINT, or TERM, exiting gracefully" << LL_ENDL;
|
||||
}
|
||||
// Graceful exit
|
||||
// Just set our state to quitting, not error
|
||||
|
|
|
|||
Loading…
Reference in New Issue