bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ps hang


From: Justus Winter
Subject: Re: ps hang
Date: Tue, 26 May 2015 15:30:28 +0200
User-agent: alot/0.3.5

Hi :)

Quoting Esa Peuha (2015-05-26 10:41:37)
> Here is a patch that should break the infinite loop.

Cool.  Thanks for looking into this.

> Samuel Thibault <samuel.thibault@gnu.org> wrote:
> > ps -o %r
> >
> > hangs, could somebody have a look?

Just to make sure I understand the problem.  AIUI there are two
issues:

1. For ps-hurd, -o == --posix-format (for libps that means no '%'),
and -F == --format (the format described in ps.h):

teythoon@darnassus:~$ ps-hurd -o ppid $$
  PPID
  7981
teythoon@darnassus:~$ ps-hurd -F %ppid $$
  PPID
  7981
teythoon@darnassus:~$ ps-hurd -F %r $$
ps-hurd: r: Unknown format spec
teythoon@darnassus:~$ ps-hurd -o %ppid $$
^C

2. `%r' is AIX for pgid.  Our ps doesn't understand that, but the one
from procps does:

teythoon@darnassus:~$ ps-hurd -o %r $$
^C
teythoon@darnassus:~$ ps.procps -o %r $$
  PGID
  7982

I conclude that `ps -o %r' never worked, but hanging is of course not
an option.  Samuel, did you mean that?

Also, ps-hurd is suid root.  wtf...

Cheers,
Justus



reply via email to

[Prev in Thread] Current Thread [Next in Thread]