I think in most of my coding exercises, I either had a kill_kids()
function, called on exit, or had child processes check for a live
parent, as Ajai said.

On Tue, 20 Jul 2004 13:06:44 -0400 (EDT), Ajai Khattri <ajai at bway.net> wrote:
> On Tue, 20 Jul 2004, Josh Close wrote:
> 
> > I'm doing several forks (up to 1000) and the child processes are
> > returning data via a pipe.
> >
> > If the parent catches an error and I have the program exit, will all
> > the children exit also?
> >
> > Or will they be waiting to pipe, in which case I should kill all the children?
> >
> > "I should kill all the children"..... when did programming become so violent?
> 
> Hopefully, your children will notice that the other end closed the pipe
> and commit suicide instead ;-)
> 
> Seriously, your child processes should check for connection resets anyway.

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
Help beta test TCLUG's potential new home: http://plone.mn-linux.org
Got pictures for TCLUG? Beta test http://plone.mn-linux.org/gallery
tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list