summaryrefslogtreecommitdiffstats
path: root/usr.bin/msgs/msgs.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/msgs/msgs.c')
-rw-r--r--usr.bin/msgs/msgs.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/msgs/msgs.c b/usr.bin/msgs/msgs.c
index 54e2d940f37..bde3fbb9761 100644
--- a/usr.bin/msgs/msgs.c
+++ b/usr.bin/msgs/msgs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msgs.c,v 1.17 2000/08/02 04:10:48 millert Exp $ */
+/* $OpenBSD: msgs.c,v 1.18 2001/09/04 23:35:59 millert Exp $ */
/* $NetBSD: msgs.c,v 1.7 1995/09/28 06:57:40 tls Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)msgs.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: msgs.c,v 1.17 2000/08/02 04:10:48 millert Exp $";
+static char rcsid[] = "$OpenBSD: msgs.c,v 1.18 2001/09/04 23:35:59 millert Exp $";
#endif
#endif /* not lint */
@@ -715,8 +715,11 @@ void
onsusp(unused)
int unused;
{
+ sigset_t emptyset;
+
signal(SIGTSTP, SIG_DFL);
- sigsetmask(0);
+ sigemptyset(&emptyset);
+ sigprocmask(SIG_SETMASK, &emptyset, NULL);
kill(0, SIGTSTP);
signal(SIGTSTP, onsusp);
if (!mailing)