On 2012-07-21 16:20, Dr.Ruud wrote:
On 2012-07-21 15:41, punit jain wrote:

You can let the ALRM-sub simply set a global variable, like $STOP.
Your process should check this before starting a next iteration.

I suppose this needs to be set in parent process which means Signal needs
to be invoked in parent. Is my understanding correct ? Will any new
subprocess that is going to get started will have access to this Global
variable ?

See my previous reply:
"Beware that each child needs its own alarm. The parent won't need one."

Nothing is shared between parent and children!

Though an alternative would be to have only an ALRM in the parent,
and then let it SIGNIT/SIGTRM the running children.

--
Ruud



--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to