Source-Changes-HG archive

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

[src/trunk]: src/bin/sh DEBUG mode only change - correctly track internal she...



details:   https://anonhg.NetBSD.org/src/rev/4ea8e0718d79
branches:  trunk
changeset: 353701:4ea8e0718d79
user:      kre <kre%NetBSD.org@localhost>
date:      Thu May 18 13:34:17 2017 +0000

description:
DEBUG mode only change - correctly track internal shell sub-shell nesting
levels for debug output.  This change accidentally omitted earlier (only
effect is incorrect nesting levels shown in trace output when the option
to show them is enabled.)   NFC for any normal shell build.

diffstat:

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

diffs (26 lines):

diff -r 5ae529177a6a -r 4ea8e0718d79 bin/sh/jobs.c
--- a/bin/sh/jobs.c     Thu May 18 13:31:10 2017 +0000
+++ b/bin/sh/jobs.c     Thu May 18 13:34:17 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: jobs.c,v 1.84 2017/05/11 14:57:14 kre Exp $    */
+/*     $NetBSD: jobs.c,v 1.85 2017/05/18 13:34:17 kre Exp $    */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)jobs.c     8.5 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: jobs.c,v 1.84 2017/05/11 14:57:14 kre Exp $");
+__RCSID("$NetBSD: jobs.c,v 1.85 2017/05/18 13:34:17 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -869,6 +869,7 @@
                error("Cannot fork (%s)", strerror(serrno));
                break;
        case 0:
+               SHELL_FORKED();
                forkchild(jp, n, mode, 0);
                return 0;
        default:



Home | Main Index | Thread Index | Old Index