mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Install signal handler if we are using sigaction.
This commit is contained in:
parent
c7ac31e26e
commit
215c24fc8e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user