in reply to trap signal 'exit': why I am not able to have it work??
From my understanding are handlers %SIG supposed to process external (OS specific) signals send from a kill command to the process, maybe with the only exception of warn and die which are not signals but internal hooks.
see also perlipc#Signals
I couldn't find any mention of the possibility to intercept exit() with a sighandler
But this "trapping exit() calls with %SIG" explicitly shows how to execute code in an END block after exit .
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: trap signal 'exit': why I am not able to have it work?? (updated)
by alex5161 (Novice) on Oct 31, 2017 at 13:11 UTC | |
by LanX (Saint) on Oct 31, 2017 at 18:07 UTC | |
by alex5161 (Novice) on Nov 01, 2017 at 16:47 UTC |