+3

unload_handler is not getting called

Filipe Cabecinhas 13 years ago updated 13 years ago 0
unload_handler() is not called when exiting Sublime Text 2.
I have defined it as following:
def unload_handler():
    cleanup()

And, when I exit sublime text 2, that handler isn't being called to clean up. Which sucks because I have child processes that have to terminate cleanly, so the OS doesn't warn me that a program has stopped working.