Module Name:    src
Committed By:   gson
Date:           Thu Jun 11 18:12:00 UTC 2015

Modified Files:
        src/usr.bin/tip: tip.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/usr.bin/tip/tip.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/tip/tip.c
diff -u src/usr.bin/tip/tip.c:1.55 src/usr.bin/tip/tip.c:1.56
--- src/usr.bin/tip/tip.c:1.55	Sun Jul 27 04:32:23 2014
+++ src/usr.bin/tip/tip.c	Thu Jun 11 18:12:00 2015
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 19
 #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 @@ cleanup(int dummy __unused)
 
 	if (odisc)
 		(void)ioctl(0, TIOCSETD, &odisc);
-	exit(0);
+	_exit(0);
 }
 
 /*

Reply via email to