try to echo inside the handler sub to see if you really don't get the signal...
It isn't a good idea in general to use a fatal-signal handler for "clean-later" marks, do the clean up for fatal signals in the handler and exit there would be my general advice...
regards,
tomte
Hlade's Law:
If you have a difficult task, give it to a lazy person --
they will find an easier way to do it.
In reply to Re: (slightly OT) catching SIGTERM when system goes down
by Tomte
in thread (slightly OT) catching SIGTERM when system goes down
by edan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |