Add sigquit for completeness to the list of blocked signals with int and tstp.

Does not have any security implication. From Pierre Carrier
This commit is contained in:
christos 2012-04-11 02:28:46 +00:00
parent ca3b7262c4
commit aa2f39e93f
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: openpam_ttyconv.c,v 1.3 2012/01/03 18:56:49 christos Exp $ */ /* $NetBSD: openpam_ttyconv.c,v 1.4 2012/04/11 02:28:46 christos Exp $ */
/*- /*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc. * Copyright (c) 2002-2003 Networks Associates Technology, Inc.
@ -82,6 +82,7 @@ prompt(const char *msg, FILE *infp, FILE *outfp, FILE *errfp)
saved_alarm = 0; saved_alarm = 0;
sigemptyset(&sigs); sigemptyset(&sigs);
sigaddset(&sigs, SIGINT); sigaddset(&sigs, SIGINT);
sigaddset(&sigs, SIGQUIT);
sigaddset(&sigs, SIGTSTP); sigaddset(&sigs, SIGTSTP);
sigprocmask(SIG_SETMASK, &sigs, &saved_sigset); sigprocmask(SIG_SETMASK, &sigs, &saved_sigset);
action.sa_handler = &timeout; action.sa_handler = &timeout;