Welcome to the Monastery | |
PerlMonks |
Handling killing the perl processby ohadhawk (Initiate) |
on Jan 04, 2010 at 09:09 UTC ( [id://815542]=perlquestion: print w/replies, xml ) | Need Help?? |
ohadhawk has asked for the wisdom of the Perl Monks concerning the following question:
Hello dear monks,
My perl script performs some actions that may leave the system in an inconsistent state. What I'd like to do is either roll back some actions on exit or notify the user running the script to do it manually. I've assigned my own handlers to all the applicable termination signals, such as INT, ABRT, KILL, etc' and this works. But the problem is that I don't know how to handle termination of the process by windows - either by the task manager or by closing the console window. Does any wise monk know of a way for me to be able to catch the termination of the process ? May light shine on your path :-)
Back to
Seekers of Perl Wisdom
|
|