diff options
author | Ben Laurie <ben@openssl.org> | 1999-04-10 10:21:44 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-04-10 10:21:44 +0000 |
commit | 215c24fc8e788a8628542e26e712432bc0ec775e (patch) | |
tree | 690e17583e89934ddc18acdf1cbc026394db330c | |
parent | c7ac31e26ed46c957983111d3a537085167fcc9c (diff) | |
download | openssl-215c24fc8e788a8628542e26e712432bc0ec775e.tar.gz |
Install signal handler if we are using sigaction.
-rw-r--r-- | crypto/des/read_pwd.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crypto/des/read_pwd.c b/crypto/des/read_pwd.c index db59c4c040..45f66b5da1 100644 --- a/crypto/des/read_pwd.c +++ b/crypto/des/read_pwd.c @@ -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 |