diff options
Diffstat (limited to 'lib/libss')
-rw-r--r-- | lib/libss/list_rqs.c | 3 | ||||
-rw-r--r-- | lib/libss/listen.c | 5 | ||||
-rw-r--r-- | lib/libss/pager.c | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/lib/libss/list_rqs.c b/lib/libss/list_rqs.c index 34e8ae877a9..ae5e2c9147d 100644 --- a/lib/libss/list_rqs.c +++ b/lib/libss/list_rqs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: list_rqs.c,v 1.1 1996/11/15 09:25:29 downsj Exp $ */ +/* $OpenBSD: list_rqs.c,v 1.2 1998/06/03 16:20:27 deraadt Exp $ */ /*- * Copyright 1987, 1988 by the Student Information Processing Board @@ -66,6 +66,7 @@ ss_list_requests(argc, argv, sci_idx, info_ptr) sigaddset(&nmask, SIGINT); sigprocmask(SIG_BLOCK, &nmask, &omask); + memset(&nsig, 0, sizeof nsig); nsig.sa_handler = SIG_IGN; sigemptyset(&nsig.sa_mask); nsig.sa_flags = 0; diff --git a/lib/libss/listen.c b/lib/libss/listen.c index f06dfc32f15..b0f0ee1114a 100644 --- a/lib/libss/listen.c +++ b/lib/libss/listen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: listen.c,v 1.1 1996/11/15 09:25:29 downsj Exp $ */ +/* $OpenBSD: listen.c,v 1.2 1998/06/03 16:20:29 deraadt Exp $ */ /*- * Copyright 1987, 1988 by the Student Information Processing Board @@ -38,7 +38,7 @@ #ifndef lint static char const rcs_id[] = - "$Id: listen.c,v 1.1 1996/11/15 09:25:29 downsj Exp $"; + "$Id: listen.c,v 1.2 1998/06/03 16:20:29 deraadt Exp $"; #endif #ifndef NPOSIX @@ -114,6 +114,7 @@ ss_listen (sci_idx) memcpy(old_jmpb, listen_jmpb, sizeof(jmp_buf)); #ifndef NPOSIX + memset(&nsig, 0, sizeof nsig); nsig.sa_handler = listen_int_handler; sigemptyset(&nsig.sa_mask); nsig.sa_flags = 0; diff --git a/lib/libss/pager.c b/lib/libss/pager.c index 4bdaabc2fa6..2398011bbc8 100644 --- a/lib/libss/pager.c +++ b/lib/libss/pager.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pager.c,v 1.1 1996/11/15 09:25:30 downsj Exp $ */ +/* $OpenBSD: pager.c,v 1.2 1998/06/03 16:20:30 deraadt Exp $ */ /*- * Copyright 1987, 1988 by the Student Information Processing Board @@ -93,6 +93,7 @@ ss_page_stdin() for (i = 3; i < 32; i++) (void) close(i); #ifndef NPOSIX + memset(&sa, 0, sizeof sa); sa.sa_handler = SIG_DFL; sigemptyset(&sa.sa_mask); sa.sa_flags = 0; |