Module Name: src Committed By: christos Date: Sat Jan 22 21:09:52 UTC 2011
Modified Files: src/bin/ps: print.c Log Message: fix previous. To generate a diff of this commit: cvs rdiff -u -r1.116 -r1.117 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/bin/ps/print.c diff -u src/bin/ps/print.c:1.116 src/bin/ps/print.c:1.117 --- src/bin/ps/print.c:1.116 Sat Jan 22 15:55:58 2011 +++ src/bin/ps/print.c Sat Jan 22 16:09:51 2011 @@ -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,10 +580,13 @@ case LSRUN: case LSIDL: - case LSONPROC: *cp = 'R'; break; + case LSONPROC: + *cp = 'O'; + break; + case LSZOMB: case LSDEAD: *cp = 'Z'; @@ -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';