diff options
Diffstat (limited to 'crypto/heimdal/appl/login/read_string.c')
-rw-r--r-- | crypto/heimdal/appl/login/read_string.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/heimdal/appl/login/read_string.c b/crypto/heimdal/appl/login/read_string.c index 2c4b66b..f3cee14 100644 --- a/crypto/heimdal/appl/login/read_string.c +++ b/crypto/heimdal/appl/login/read_string.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997 Kungliga Tekniska Högskolan + * Copyright (c) 1997 - 2000 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -33,7 +33,7 @@ #include "login_locl.h" -RCSID("$Id: read_string.c,v 1.3 1999/12/02 17:04:56 joda Exp $"); +RCSID("$Id: read_string.c,v 1.4 2000/06/21 02:09:36 assar Exp $"); static sig_atomic_t intr_flag; @@ -62,7 +62,7 @@ read_string(const char *prompt, char *buf, size_t len, int echo) sigemptyset(&sa.sa_mask); sa.sa_flags = 0; for(i = 0; i < sizeof(sigs) / sizeof(sigs[0]); i++) - sigaction(i, &sa, &sigs[i]); + if (i != SIGALRM) sigaction(i, &sa, &sigs[i]); if((tty = fopen("/dev/tty", "r")) == NULL) tty = stdin; @@ -104,7 +104,7 @@ read_string(const char *prompt, char *buf, size_t len, int echo) fclose(tty); for(i = 0; i < sizeof(sigs) / sizeof(sigs[0]); i++) - sigaction(i, &sigs[i], NULL); + if (i != SIGALRM) sigaction(i, &sigs[i], NULL); if(ret) return -3; |