Re: very strange problem with ps

2001-03-18 Thread Ollivier Robert
According to Brooks Davis: > I'm seeing a very strange problem with ps. I was calling "ps -U Speaking of ps, since we moved into SMPng, almost all processes seems to have the 'D' state... I guess it is expected but a little strange, no? 388 [13:28] roberto@sidhe:~> ps aux USER PID %CPU %ME

Re: very strange problem with ps

2001-03-17 Thread Brooks Davis
On Sat, Mar 17, 2001 at 10:02:16AM +, David Malone wrote: > On Fri, Mar 16, 2001 at 06:21:46PM -0800, Brooks Davis wrote: > > Ah, you are correct. I should have tried that. What a strange bug. > > It happens for any option which causes the sysctl to return no > processes to libkvm. (Try ps

Re: very strange problem with ps

2001-03-17 Thread David Malone
> I actually prefer the ESRCH patch as a) it better describes what happens and b > it returns a proper error when no processes are found, making it easier for > other programs to detect this error condition. Programs should already be > checking for a error return from the sysctlbyname() that the

Re: very strange problem with ps

2001-03-17 Thread John Baldwin
On 17-Mar-01 David Malone wrote: > On Fri, Mar 16, 2001 at 06:21:46PM -0800, Brooks Davis wrote: >> Ah, you are correct. I should have tried that. What a strange bug. > > It happens for any option which causes the sysctl to return no > processes to libkvm. (Try ps -p 10). I think the follo

Re: very strange problem with ps

2001-03-17 Thread David Malone
On Fri, Mar 16, 2001 at 06:21:46PM -0800, Brooks Davis wrote: > Ah, you are correct. I should have tried that. What a strange bug. It happens for any option which causes the sysctl to return no processes to libkvm. (Try ps -p 10). I think the following patch should fix the problem. (Kirk c

Re: very strange problem with ps

2001-03-16 Thread Brooks Davis
On Fri, Mar 16, 2001 at 06:17:37PM -0800, Alex Zepeda wrote: > On Fri, Mar 16, 2001 at 06:12:29PM -0800, Brooks Davis wrote: > > I'm seeing a very strange problem with ps. I was calling "ps -U > > >From what I can tell (I've seen this for a while), calling ps -U username > where username has no

Re: very strange problem with ps

2001-03-16 Thread Alex Zepeda
On Fri, Mar 16, 2001 at 06:12:29PM -0800, Brooks Davis wrote: > I'm seeing a very strange problem with ps. I was calling "ps -U >From what I can tell (I've seen this for a while), calling ps -U username where username has no running processes (or none shown), will return such an error. ps -U