Posted on 2007-04-04 12:35:38-07 by calli
how to catch the SIG within detached threads
Hi, I wloud like (need) to catch the SIG{..} within detached theards.
I have seen the pool.pl example and saw, that this realized by a threaded var $TERM which is set by 'Mum', this means that $TERM has to be checked every wink in the threads.
But what if the detached threads were able and were set to sleep 1 hour before going on to work?
Despite that that there is nothing to do the loop has to keep on checking $TERM for the rare possibility that a SIG{..} was set.

Is there absolutely no possibilty that 'mum' send the the Signals received as well to her childs (or the childs cathes them themselves) causing the same effect within the childs like:
$SIG{USR1}='doSigUSR1';
$SIG{USR2}='doSigUSR2';
sub doSigUSR1 { .. }

and so on?
Direct Responses: 4755 | 4756 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.