Module Name:    src
Committed By:   christos
Date:           Tue May  2 03:29:14 UTC 2017

Modified Files:
        src/usr.bin/mail: collect.c

Log Message:
reset signal handler before returning.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/usr.bin/mail/collect.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/mail/collect.c
diff -u src/usr.bin/mail/collect.c:1.47 src/usr.bin/mail/collect.c:1.48
--- src/usr.bin/mail/collect.c:1.47	Fri Jun 28 13:36:18 2013
+++ src/usr.bin/mail/collect.c	Mon May  1 23:29:14 2017
@@ -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 @@ coll_int(int signo)
 			(void)puts("@");
 			(void)fflush(stdout);
 			clearerr(stdin);
+			signal(SIGINT, o);
 			return;
 		}
 		hadintr = 1;
+		signal(SIGINT, o);
 		longjmp(reset_jmpbuf, signo);
 	}
 	if (collf) {

Reply via email to