threads - how to catch the SIG within detached threads

Posted on Wed Apr 4 15:35:38 2007 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