=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mail/lex.c,v retrieving revision 1.15 retrieving revision 1.16 diff -c -r1.15 -r1.16 *** src/usr.bin/mail/lex.c 1997/11/14 00:23:48 1.15 --- src/usr.bin/mail/lex.c 1998/05/04 05:37:49 1.16 *************** *** 1,4 **** ! /* $OpenBSD: lex.c,v 1.15 1997/11/14 00:23:48 millert Exp $ */ /* $NetBSD: lex.c,v 1.10 1997/05/17 19:55:13 pk Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: lex.c,v 1.16 1998/05/04 05:37:49 millert Exp $ */ /* $NetBSD: lex.c,v 1.10 1997/05/17 19:55:13 pk Exp $ */ /* *************** *** 38,44 **** #if 0 static char sccsid[] = "@(#)lex.c 8.2 (Berkeley) 4/20/95"; #else ! static char rcsid[] = "$OpenBSD: lex.c,v 1.15 1997/11/14 00:23:48 millert Exp $"; #endif #endif /* not lint */ --- 38,44 ---- #if 0 static char sccsid[] = "@(#)lex.c 8.2 (Berkeley) 4/20/95"; #else ! static char rcsid[] = "$OpenBSD: lex.c,v 1.16 1998/05/04 05:37:49 millert Exp $"; #endif #endif /* not lint */ *************** *** 549,555 **** --- 549,558 ---- intr(s) int s; { + sigset_t set, oset; + (void)sigfillset(&set); + (void)sigprocmask(SIG_BLOCK, &set, &oset); noreset = 0; if (!inithdr) sawcom++; *************** *** 565,570 **** --- 568,574 ---- } fputs("Interrupt\n", stderr); reset(0); + (void)sigprocmask(SIG_SETMASK, &oset, NULL); } /*