*BSD News Article 3345


Return to BSD News archive

Xref: sserve comp.unix.bsd:3389 comp.bugs.4bsd:1883
Path: sserve!manuel!munnari.oz.au!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!ais.org!umeecs!dip.eecs.umich.edu!dmuntz
From: dmuntz@dip.eecs.umich.edu (Daniel A Muntz)
Newsgroups: comp.unix.bsd,comp.bugs.4bsd
Subject: Re: Ooops. looks like 'ps aux' problem isn't solved after all
Message-ID: <1992Aug12.032539.5872@zip.eecs.umich.edu>
Date: 12 Aug 92 03:25:39 GMT
References: <1992Aug7.143505.19661@agora.uucp> <Bsnt0B.58@harlie.lonestar.org>
Sender: news@zip.eecs.umich.edu (Mr. News)
Organization: University of Michigan EECS Dept., Ann Arbor
Lines: 22

In article <Bsnt0B.58@harlie.lonestar.org> mitch@harlie.lonestar.org (Mitch Mitchell) writes:
>davidg@agora.rain.com (David Greenman) writes:
>>   I really thought that I had found the problem...but after putting
>    I've not been able to follow the thread on ps aux failure completely,

There have been several posts about this since David Greenman posted
a fix which has worked for me (Message-ID: <1992Aug9.130540.26632@agora.uucp>)
Are people still having problems with ps after applying this fix or
did this article not see wide distribution?  I'll include the patch here:

*** /usr/src/bin/ps/ps.c.01orig Mon Jul  1 17:54:45 1991
--- /usr/src/bin/ps/ps.c        Sun Aug  9 05:35:26 1992
***************
*** 78,83 ****
--- 78,84 ----

  uid_t getuid();
  char  *ttyname();
+ double        getpcpu();

  char dfmt[] = "pid tt state time command";
  char jfmt[] = "user pid ppid pgid sess jobc state tt time command";