in reply to Re: shutdown gracefully - kill signal trap
in thread shutdown gracefully - kill signal trap
As you note signals in Perl are dangerous. I use them all the time and they do cause the occasional seg fault. I mostly use them for clean exit handling as in the above case where it is a hell of a lot better than just crunching a process with kill -9. Your worst case is a kill -9 and the best case is a controlled exit.
cheers
tachyon
|
|---|