Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Fix crash when DEBUG=2, by opening the log file ASAP....



details:   https://anonhg.NetBSD.org/src/rev/edd5ddfcc198
branches:  trunk
changeset: 551948:edd5ddfcc198
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Sun Sep 14 12:09:29 2003 +0000

description:
Fix crash when DEBUG=2, by opening the log file ASAP.  Reviewed by simonb@.

diffstat:

 bin/sh/main.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 27728f99cc0c -r edd5ddfcc198 bin/sh/main.c
--- a/bin/sh/main.c     Sun Sep 14 11:12:14 2003 +0000
+++ b/bin/sh/main.c     Sun Sep 14 12:09:29 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.47 2003/08/07 09:05:34 agc Exp $    */
+/*     $NetBSD: main.c,v 1.48 2003/09/14 12:09:29 jmmv Exp $   */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.7 (Berkeley) 7/19/95";
 #else
-__RCSID("$NetBSD: main.c,v 1.47 2003/08/07 09:05:34 agc Exp $");
+__RCSID("$NetBSD: main.c,v 1.48 2003/09/14 12:09:29 jmmv Exp $");
 #endif
 #endif /* not lint */
 
@@ -165,6 +165,9 @@
        }
        handler = &jmploc;
 #ifdef DEBUG
+#if DEBUG == 2
+       debug = 1;
+#endif
        opentrace();
        trputs("Shell args:  ");  trargs(argv);
 #endif



Home | Main Index | Thread Index | Old Index