On Fri, 2002-04-19 at 21:38, Ahmed Moustafa wrote: > Chas Owens wrote: > > my $terminate = 0; > > $SIG{TERM} = sub { $terminate = 1 }; > > until ($terminate) { > > #do stuff > > } > > > > #cleanup > > > > > > You should definitely provide some means of cleanly bring down your > > daemon. > > Cleaning up is application specific, isn't? Or, is there a standard > procedure? > > How can a child process be forced to be killed (in the cleaning up)? > > -- > Ahmed Moustafa > http://pobox.com/~amoustafa
The daemon should not come down until all of its children are finished. That is why you need intercept SIGTERM. -- Today is Sweetmorn the 38th day of Discord in the YOLD 3168 Kallisti! Missile Address: 33:48:3.521N 84:23:34.786W -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]