PID of a process

From: Jason (jayrbrown77_at_yahoo.com)
Date: 01/29/04


Date: 29 Jan 2004 09:51:40 -0800

Process A starts a group of Process B's. Process A starts Process B
using the system call. At Process A shutdown, process A needs to be
able to kill all the process B's that process A started, but only the
process B's that Process A started. If another process starts a
process B, process A should not kill that process.

Is there a way to get the PID's of the process B's that process A
starts?