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


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to