未验证 提交 b36988f4 编写于 作者: J Joshua Peterson 提交者: GitHub

Merge pull request #983 from Unity-Technologies/fix-missing-sigaction

Don't call sa_sigaction when it is NULL
......@@ -133,7 +133,8 @@ SIG_HANDLER_SIGNATURE (mono_chain_signal)
saved_handler->sa_handler (signal);
} else {
#ifdef MONO_ARCH_USE_SIGACTION
saved_handler->sa_sigaction (signal, info, ctx);
if (saved_handler->sa_sigaction != NULL)
saved_handler->sa_sigaction (signal, info, ctx);
#endif /* MONO_ARCH_USE_SIGACTION */
}
return TRUE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册