On Tue, Jan 29, 2008 at 02:54:14PM +0100, Helmut Schneider wrote:
If you really want to find the parent you can...
$ ps ax -O pgid | grep ntpd
4887 4887 ?? Is 0:00.01 ntpd: [priv] (ntpd)
7164 4887 ?? I 0:00.06 ntpd: ntp engine (ntpd)
The header that gets stripped by grep:
PID PGID TT STAT TIME COMMAND
So you can see that for one process PID==PGID. Bingo.
--
Darrin Chandler | Phoenix BSD User Group | MetaBUG
dwchandler@stilyagin.com | http://phxbug.org/ | http://metabug.org/
http://www.stilyagin.com/ | Daemons in the Desert | Global BUG Federation
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Tejun Heo | [PATCH 2/5] sysfs: simplify sysfs_rename_dir() |
| Andi Kleen | [PATCH x86] [0/16] Various i386/x86-64 changes |
| Dave Hansen | Re: [RFC/PATCH] Documentation of kernel messages |
git: | |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Thomas Gleixner | Re: [BUG] New Kernel Bugs |
