Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/tip Don't call exit() from a signal handler, as it's...



details:   https://anonhg.NetBSD.org/src/rev/5e4e3719b138
branches:  trunk
changeset: 808996:5e4e3719b138
user:      gson <gson%NetBSD.org@localhost>
date:      Thu Jun 11 18:12:00 2015 +0000

description:
Don't call exit() from a signal handler, as it's not async-signal-safe;
use _exit() instead.

diffstat:

 usr.bin/tip/tip.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 604527fd78d9 -r 5e4e3719b138 usr.bin/tip/tip.c
--- a/usr.bin/tip/tip.c Thu Jun 11 15:58:49 2015 +0000
+++ b/usr.bin/tip/tip.c Thu Jun 11 18:12:00 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tip.c,v 1.55 2014/07/27 04:32:23 dholland Exp $        */
+/*     $NetBSD: tip.c,v 1.56 2015/06/11 18:12:00 gson Exp $    */
 
 /*
  * Copyright (c) 1983, 1993
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)tip.c      8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: tip.c,v 1.55 2014/07/27 04:32:23 dholland Exp $");
+__RCSID("$NetBSD: tip.c,v 1.56 2015/06/11 18:12:00 gson Exp $");
 #endif /* not lint */
 
 /*
@@ -264,7 +264,7 @@
 
        if (odisc)
                (void)ioctl(0, TIOCSETD, &odisc);
-       exit(0);
+       _exit(0);
 }
 
 /*



Home | Main Index | Thread Index | Old Index