kill all childs of parent
Hi..
try this...
The syntax of kill command is
kill(pid,signal);
As u want to kill ALL children u created by saying execl("java...") after forking.
The Process Group Id, of the "Parent Process" (which forked) and the child
created will same.
so do the following...to kill all process having the SAME PROCESS ID ..should work for u.
kill(0,SIGTERM);
Cheers
Vins
|