Source-Changes-HG archive

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

[src/trunk]: src/bin/ps fix previous.



details:   https://anonhg.NetBSD.org/src/rev/e2dff5acebb1
branches:  trunk
changeset: 761289:e2dff5acebb1
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 22 21:09:51 2011 +0000

description:
fix previous.

diffstat:

 bin/ps/print.c |  13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r 4bfcc5b84d37 -r e2dff5acebb1 bin/ps/print.c
--- a/bin/ps/print.c    Sat Jan 22 20:55:58 2011 +0000
+++ b/bin/ps/print.c    Sat Jan 22 21:09:51 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print.c,v 1.116 2011/01/22 20:55:58 christos Exp $     */
+/*     $NetBSD: print.c,v 1.117 2011/01/22 21:09:51 christos Exp $     */
 
 /*
  * Copyright (c) 2000, 2007 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
 #if 0
 static char sccsid[] = "@(#)print.c    8.6 (Berkeley) 4/16/94";
 #else
-__RCSID("$NetBSD: print.c,v 1.116 2011/01/22 20:55:58 christos Exp $");
+__RCSID("$NetBSD: print.c,v 1.117 2011/01/22 21:09:51 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -580,8 +580,11 @@
 
        case LSRUN:
        case LSIDL:
+               *cp = 'R';
+               break;
+
        case LSONPROC:
-               *cp = 'R';
+               *cp = 'O';
                break;
 
        case LSZOMB:
@@ -598,8 +601,10 @@
                *cp = '?';
        }
        cp++;
-       if (flag & P_SYSTEM)
+       if (flag & L_SYSTEM)
                *cp++ = 'K';
+       if (flag & L_SA)
+               *cp++ = 'a';
        if (flag & L_DETACHED)
                *cp++ = '-';
        *cp = '\0';



Home | Main Index | Thread Index | Old Index