mirror of
https://github.com/corda/corda.git
synced 2025-04-18 16:18:12 +00:00
ensure that sa_sigaction is non-null before attempting to call it
This commit is contained in:
parent
86ed206f5a
commit
7b85afedec
@ -874,7 +874,9 @@ handleSignal(int signal, siginfo_t* info, void* context)
|
||||
default: abort();
|
||||
}
|
||||
|
||||
if (system->oldHandlers[index].sa_flags & SA_SIGINFO) {
|
||||
if (system->oldHandlers[index].sa_flags & SA_SIGINFO
|
||||
and system->oldHandlers[index].sa_sigaction)
|
||||
{
|
||||
system->oldHandlers[index].sa_sigaction(signal, info, context);
|
||||
} else if (system->oldHandlers[index].sa_handler) {
|
||||
system->oldHandlers[index].sa_handler(signal);
|
||||
|
Loading…
x
Reference in New Issue
Block a user