Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/man Remove temp file on SIGPIPE (such as "man sh | h...



details:   https://anonhg.NetBSD.org/src/rev/f2232ec0e116
branches:  trunk
changeset: 473786:f2232ec0e116
user:      itohy <itohy%NetBSD.org@localhost>
date:      Sat Jun 19 05:25:31 1999 +0000

description:
Remove temp file on SIGPIPE (such as "man sh | head").

diffstat:

 usr.bin/man/man.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r f6f737345876 -r f2232ec0e116 usr.bin/man/man.c
--- a/usr.bin/man/man.c Sat Jun 19 05:20:17 1999 +0000
+++ b/usr.bin/man/man.c Sat Jun 19 05:25:31 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: man.c,v 1.16 1999/06/13 19:38:04 kleink Exp $  */
+/*     $NetBSD: man.c,v 1.17 1999/06/19 05:25:31 itohy Exp $   */
 
 /*
  * Copyright (c) 1987, 1993, 1994, 1995
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)man.c      8.17 (Berkeley) 1/31/95";
 #else
-__RCSID("$NetBSD: man.c,v 1.16 1999/06/13 19:38:04 kleink Exp $");
+__RCSID("$NetBSD: man.c,v 1.17 1999/06/19 05:25:31 itohy Exp $");
 #endif
 #endif /* not lint */
 
@@ -296,6 +296,7 @@
         */
        (void)signal(SIGINT, onsig);
        (void)signal(SIGHUP, onsig);
+       (void)signal(SIGPIPE, onsig);
 
        memset(&pg, 0, sizeof(pg));
        for (found = 0; *argv; ++argv)



Home | Main Index | Thread Index | Old Index