From 6cf6f3e080d8d8e9ee1f429bc4fb86c813b91703 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Wed, 21 Jun 2000 02:09:36 +0000 Subject: [PATCH] avoid SIGALRM to let login use that git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8423 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/login/read_string.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/appl/login/read_string.c b/appl/login/read_string.c index e9c729c3d..1a2640aaa 100644 --- a/appl/login/read_string.c +++ b/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. * @@ -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;