projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
My last few changes to the release code plus a small termcap file
[unix-history]
/
bin
/
ps
/
print.c
diff --git
a/bin/ps/print.c
b/bin/ps/print.c
index
a64a55b
..
5ef075c
100644
(file)
--- a/
bin/ps/print.c
+++ b/
bin/ps/print.c
@@
-141,7
+141,7
@@
state(k, v)
if (flag & SSINTR) /* interuptable (long) */
*cp = p->p_slptime >= MAXSLP ? 'I' : 'S';
else
if (flag & SSINTR) /* interuptable (long) */
*cp = p->p_slptime >= MAXSLP ? 'I' : 'S';
else
- *cp =
(flag & SPAGE) ? 'P' :
'D';
+ *cp =
/* (flag & SPAGE) ? 'P' : */
'D';
break;
case SRUN:
break;
case SRUN:
@@
-190,6
+190,8
@@
state(k, v)
if (flag & (SSYS|SLOCK|SULOCK|SKEEP|SPHYSIO))
#endif
*cp++ = 'L';
if (flag & (SSYS|SLOCK|SULOCK|SKEEP|SPHYSIO))
#endif
*cp++ = 'L';
+ if (flag & SUGID)
+ *cp++ = 'U';
if (k->ki_e->e_flag & EPROC_SLEADER)
*cp++ = 's';
if ((flag & SCTTY) && k->ki_e->e_pgid == k->ki_e->e_tpgid)
if (k->ki_e->e_flag & EPROC_SLEADER)
*cp++ = 's';
if ((flag & SCTTY) && k->ki_e->e_pgid == k->ki_e->e_tpgid)