Wrong 'w' and 'ps' (bug in procps?)
hi just installed 1.0.9
and now this 'bug' ?
:
[ddx@sun ddx]$ w
6:07pm up 16:51, 4 users, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty9 6:59am 11:06m 0.00s ? - ddx ttyp0 ddx.ml.org 8:25am 1:56m 0.00s ? - ddx ttyp1 ddx.ml.org 6:07pm 26.00s 0.00s ? - ddx ttyp2 ddx.ml.org 6:07pm 0.00s 0.00s ? - [ddx@sun ddx]$ ps PID TTY STAT TIME COMMAND 655 ? S 0:00 /bin/login -h ddx.ml.org -p 656 ? S 0:00 -bash 667 ? S 0:05 BitchX 1127 ? S 0:00 login -p -h ddx.ml.org -f ddx 1128 ? S 0:00 -bash 1147 ? S 0:00 login -p -h ddx.ml.org ddx 1148 ? S 0:00 -bash 1157 ? R 0:00 ps
PCPU and the TTY are not logged ok i think
but :
[ddx@sun ddx]$ who
root tty9 May 13 06:59 ddx ttyp0 May 13 08:25 (ddx.ml.org) ddx ttyp1 May 13 18:07 (ddx.ml.org) ddx ttyp2 May 13 18:07 (ddx.ml.org)
gives it ok
Date: Wed, 13 May 1998 19:10:41 +0200 (CEST)
From: Stephan van Hienen <[email protected]>
hi just installed 1.0.9
and now this 'bug' ?
Thanks for pointing it out, it is fixed now. If impatient, unpack the procps SRPM from the UP-1.0.9 distribution, and perform the following tasks to get fixed binaries:
1) Add the patch at the end of this mail to your procps tree
2) Rebuild
3) Install
4) Remove /etc/psdevtab
5) Run w, ps, or one of those procps programs once, this will rebuild /etc/psdevtab as a side effect
Once done, all the bugs you reported should be gone.
devname.c renamed from devname.c.~1~ +2 -2
@@ -12,9 +12,9 @@#include <unistd.h> #include <fcntl.h> -#define __KERNEL__ +/* #define __KERNEL__ */ #include <linux/kdev_t.h> -#undef __KERNEL__ +/* #undef __KERNEL__ */ #define DEVDIR "/dev"#define DEVTAB "psdevtab"
w.c renamed from w.c.~1~ +1 -1
@@ -83,7 +83,7 @@if (maxcmd <3 )fprintf (stderr,"warning: screen width %d suboptimal.\n" , win.ws_col); - procs =readproctab (PROC_FILLCMD |PROC_FILLTTY ); + procs =readproctab (PROC_FILLCMD |PROC_FILLTTY |PROC_FILLUSR );if (header) {/* print uptime and headers */ print_uptime ();