提交 215c24fc 编写于 作者: B Ben Laurie

Install signal handler if we are using sigaction.

上级 c7ac31e2
......@@ -399,6 +399,12 @@ int verify;
static void pushsig()
{
int i;
#ifdef SIGACTION
struct sigaction sa;
memset(&sa,0,sizeof sa);
sa.sa_handler=recsig;
#endif
for (i=1; i<NX509_SIG; i++)
{
......@@ -411,7 +417,7 @@ static void pushsig()
continue;
#endif
#ifdef SIGACTION
sigaction(i,NULL,&savsig[i]);
sigaction(i,&sa,&savsig[i]);
#else
savsig[i]=signal(i,recsig);
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册