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

Dylan Thurston dpt at bostoncoop.net
Wed Aug 11 13:59:58 EDT 2004


On Wed, Aug 11, 2004 at 01:45:27PM -0400, Adam Rosi-Kessel wrote:
> Really what would help is if there were a way to find out what children a
> child has spawned so they can all be killed.  If I kill the pid of the
> child and pid+1 in my perl script, that does the job, but that assumes
> that the child only has one child and that the grandchild's pid is pid+1,
> which I don't think is a safe assumption to make.

Presumably there's some way to do this, since pstree does it.

Peace,
	Dylan
-------------- 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/360fb25c/attachment.pgp


More information about the Linux-disciples mailing list