in reply to Re^2: Gracefull Death of a Child: How to Catch Mum's SIGNALS?
in thread Gracefull Death of a Child: How to Catch Mum's SIGNALS?

oh ok! re "use sigtrap makes no difference" - well it wouldn't unless you define a handler for the signal being sent.

Update: what about using Thread::Queue to send and receive homegrown "signals" - that way at least you have some guarantee of thread safety.

-M

Free your mind

  • Comment on Re^3: Gracefull Death of a Child: How to Catch Mum's SIGNALS?

Replies are listed 'Best First'.
Re^4: Gracefull Death of a Child: How to Catch Mum's SIGNALS?
by Anonymous Monk on Apr 04, 2007 at 14:36 UTC
    Moron,
    I did that! The problem is nothing arrives 'in' Darling!
    Even the example that comes with threads: pool.pl
    tries to 'fake' the signals by defining its own threaded variable $TERM
    which is set by Mums SIG-handler.
    BUT in the childs this $TERM has to be checked ALL THE TIME,
    otherwise the childs were allready killed before they had a chance
    to perform their gracefull death..
    sighing
    Carl