[Linux-disciples] perl parent vs. child vs. process group -- killing

Stephen R Laniel steve at laniels.org
Wed Aug 11 14:11:56 EDT 2004


On Wed, Aug 11, 2004 at 01:59:58PM -0400, Dylan Thurston wrote:
> Presumably there's some way to do this, since pstree does it.

A quick scan through pstree.c didn't immediately reveal how
pstree discovers the child pids; the scan reveals how it
walks the linked list of child pids, but not how it figures
out those pids to begin with. Perhaps others will have more
luck than I did:

http://laniels.org/psmisc_src/src/pstree.c

-- 
``He even provides a fountain for two characters to stand
  beside, so they can illustrate Gene Siskel's maxim that
  nobody in a comedy ever comes within 10 yards of water
  without falling in.''
 -Roger Ebert, http://shorl.com/hyfeprutekosi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20040811/7fc5e56e/attachment.pgp


More information about the Linux-disciples mailing list