diff --git a/usr.bin/mail/collect.c b/usr.bin/mail/collect.c index 77daa3da18fe..af7e2723a986 100644 --- a/usr.bin/mail/collect.c +++ b/usr.bin/mail/collect.c @@ -1,4 +1,4 @@ -/* $NetBSD: collect.c,v 1.13 1997/10/31 21:23:46 christos Exp $ */ +/* $NetBSD: collect.c,v 1.14 1997/10/31 22:15:52 christos Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)collect.c 8.2 (Berkeley) 4/19/94"; #else -__RCSID("$NetBSD: collect.c,v 1.13 1997/10/31 21:23:46 christos Exp $"); +__RCSID("$NetBSD: collect.c,v 1.14 1997/10/31 22:15:52 christos Exp $"); #endif #endif /* not lint */ @@ -591,12 +591,10 @@ collstop(s) sig_t old_action = signal(s, SIG_DFL); sigset_t nset; - sigprocmask(SIG_SETMASK, NULL, &nset); - sigdelset(&nset, s); - sigprocmask(SIG_SETMASK, &nset, NULL); - kill(0, s); sigemptyset(&nset); sigaddset(&nset, s); + sigprocmask(SIG_UNBLOCK, &nset, NULL); + kill(0, s); sigprocmask(SIG_BLOCK, &nset, NULL); signal(s, old_action); if (colljmp_p) {