Source-Changes-HG archive

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

[src/trunk]: src/etc explain why this code is there.



details:   https://anonhg.NetBSD.org/src/rev/34862abb76b6
branches:  trunk
changeset: 755527:34862abb76b6
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jun 08 13:48:58 2010 +0000

description:
explain why this code is there.

diffstat:

 etc/rc.subr |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r bdb0efe8da3f -r 34862abb76b6 etc/rc.subr
--- a/etc/rc.subr       Tue Jun 08 13:36:34 2010 +0000
+++ b/etc/rc.subr       Tue Jun 08 13:48:58 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rc.subr,v 1.83 2010/06/06 12:37:57 christos Exp $
+# $NetBSD: rc.subr,v 1.84 2010/06/08 13:48:58 christos Exp $
 #
 # Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -1186,6 +1186,9 @@
                echo "exited with code $1"
        elif [ "$(expr $1 & 255)" -eq 127 ]
        then
+               # This cannot really happen because the shell will not
+               # pass stopped job status out and the exit code is limited
+               # to 8 bits. This code is here just for completeness.
                echo "stopped with signal $(expr $1 / 256)"
        else
                echo "terminated with signal $(expr $1 - 128)"



Home | Main Index | Thread Index | Old Index