=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/msgs/Attic/msgs.c,v retrieving revision 1.17 retrieving revision 1.18 diff -c -r1.17 -r1.18 *** src/usr.bin/msgs/Attic/msgs.c 2000/08/02 04:10:48 1.17 --- src/usr.bin/msgs/Attic/msgs.c 2001/09/04 23:35:59 1.18 *************** *** 1,4 **** ! /* $OpenBSD: msgs.c,v 1.17 2000/08/02 04:10:48 millert Exp $ */ /* $NetBSD: msgs.c,v 1.7 1995/09/28 06:57:40 tls Exp $ */ /*- --- 1,4 ---- ! /* $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,50 **** #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 $"; #endif #endif /* not lint */ --- 44,50 ---- #if 0 static char sccsid[] = "@(#)msgs.c 8.2 (Berkeley) 4/28/95"; #else ! static char rcsid[] = "$OpenBSD: msgs.c,v 1.18 2001/09/04 23:35:59 millert Exp $"; #endif #endif /* not lint */ *************** *** 715,722 **** onsusp(unused) int unused; { signal(SIGTSTP, SIG_DFL); ! sigsetmask(0); kill(0, SIGTSTP); signal(SIGTSTP, onsusp); if (!mailing) --- 715,725 ---- onsusp(unused) int unused; { + sigset_t emptyset; + signal(SIGTSTP, SIG_DFL); ! sigemptyset(&emptyset); ! sigprocmask(SIG_SETMASK, &emptyset, NULL); kill(0, SIGTSTP); signal(SIGTSTP, onsusp); if (!mailing)