All of lore.kernel.org
 help / color / mirror / Atom feed
* Wrong 'w' and 'ps' (bug in procps?)
@ 1998-05-13 17:10 Stephan van Hienen
  1998-05-14  8:22 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Stephan van Hienen @ 1998-05-13 17:10 UTC (permalink / raw)
  To: ultralinux

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Wrong 'w' and 'ps' (bug in procps?)
  1998-05-13 17:10 Wrong 'w' and 'ps' (bug in procps?) Stephan van Hienen
@ 1998-05-14  8:22 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 1998-05-14  8:22 UTC (permalink / raw)
  To: ultralinux

   Date: 	Wed, 13 May 1998 19:10:41 +0200 (CEST)
   From: Stephan van Hienen <ddx@cable.a2000.nl>

   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.

--- proc/devname.c.~1~	Wed May 13 23:26:07 1998
+++ proc/devname.c	Thu May 14 00:11:29 1998
@@ -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.~1~	Fri Feb 13 08:42:38 1998
+++ w.c	Wed May 13 23:46:22 1998
@@ -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();

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-05-14  8:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-13 17:10 Wrong 'w' and 'ps' (bug in procps?) Stephan van Hienen
1998-05-14  8:22 ` David S. Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.