Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/mail reset signal handler before returning.



details:   https://anonhg.NetBSD.org/src/rev/14487e1da356
branches:  trunk
changeset: 823672:14487e1da356
user:      christos <christos%NetBSD.org@localhost>
date:      Tue May 02 03:29:14 2017 +0000

description:
reset signal handler before returning.

diffstat:

 usr.bin/mail/collect.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 7e68d002eb64 -r 14487e1da356 usr.bin/mail/collect.c
--- a/usr.bin/mail/collect.c    Tue May 02 03:17:43 2017 +0000
+++ b/usr.bin/mail/collect.c    Tue May 02 03:29:14 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: collect.c,v 1.47 2013/06/28 17:36:18 christos Exp $    */
+/*     $NetBSD: collect.c,v 1.48 2017/05/02 03:29:14 christos Exp $    */
 
 /*
  * Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)collect.c  8.2 (Berkeley) 4/19/94";
 #else
-__RCSID("$NetBSD: collect.c,v 1.47 2013/06/28 17:36:18 christos Exp $");
+__RCSID("$NetBSD: collect.c,v 1.48 2017/05/02 03:29:14 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -314,9 +314,11 @@
                        (void)puts("@");
                        (void)fflush(stdout);
                        clearerr(stdin);
+                       signal(SIGINT, o);
                        return;
                }
                hadintr = 1;
+               signal(SIGINT, o);
                longjmp(reset_jmpbuf, signo);
        }
        if (collf) {



Home | Main Index | Thread Index | Old Index