in reply to (bbfu) Re: (tye)Re2: Tied %SIG
in thread Tied %SIG

Don't forget that after your change, people still need to be able to change $SIG{INT} (etc.) so your code needs to handle that.

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
(bbfu) (the pain!) Re: (tye)Re3: Tied %SIG
by bbfu (Curate) on May 01, 2001 at 02:06 UTC

    Well, switching out %SIG's symbol table entry totally kills all ability to set signal handlers. *sigh* Plus the STORE method doesn't even get called any more. Update: Oh wait, I lied. I was just doing it wrong. It does work, though it still seems dangerous. If I still go ahead with this, I'm definately making this at least a switch that defaults to off. :-)

    Well, it would have been cool if I could've gotten it to work. I still could but it would probably explode "at the most inconvient time" (says seanbo). I still think that they should fix it so we can tie %SIG... :-)

    Maybe I'll go ahead and write the rest of the code and just put in large disclaimers that it can't be used with legacy alarm code. Heh, maybe I could even put in a $VOODOO flag... ;-)

    Thanks again for all your help, tye. I had a pretty good idea when I started that I wouldn't be able to pull this off, and I'm suprised I got as far as I did. I certainly learned a thing or two in the process, which makes it all worth-while.

    bbfu
    Seasons don't fear The Reaper.
    Nor do the wind, the sun, and the rain.
    We can be like they are.