From 215c24fc8e788a8628542e26e712432bc0ec775e Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Sat, 10 Apr 1999 10:21:44 +0000 Subject: [PATCH] Install signal handler if we are using sigaction. --- crypto/des/read_pwd.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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