Re: Abnormal Interpreter Shutdown

2008-10-21 Thread Terry Reedy
k3xji wrote: I think what I am looking for is SetConsoleCtrlHandler(..) which receives signals for CTRL+C and system shutdown. I don't want to take the power outage into account because as far as I can see there is no portable/simple/reliable way to accomplish that. So, thanks for the tip again.

Re: Abnormal Interpreter Shutdown

2008-10-21 Thread Gabriel Genellina
En Tue, 21 Oct 2008 05:07:34 -0200, k3xji <[EMAIL PROTECTED]> escribió: I think what I am looking for is SetConsoleCtrlHandler(..) which receives signals for CTRL+C and system shutdown. I don't want to take the power outage into account because as far as I can see there is no portable/simple/rel

Re: Abnormal Interpreter Shutdown

2008-10-21 Thread k3xji
I think what I am looking for is SetConsoleCtrlHandler(..) which receives signals for CTRL+C and system shutdown. I don't want to take the power outage into account because as far as I can see there is no portable/simple/reliable way to accomplish that. So, thanks for the tip again. So what is th

Re: Abnormal Interpreter Shutdown

2008-10-20 Thread k3xji
> If you mean detecting abnormal shutdown after the fact, as opposed to > catching it while happening, you could create an empty temp file when > the program starts and delete it upon normal termination. I have a server application, and I want to take some actions *before* the shutdown. I assumed

Re: Abnormal Interpreter Shutdown

2008-10-20 Thread Terry Reedy
Tim Golden wrote: k3xji wrote: Hi all, Is there anyway to detect abnormal interpreter shutdown like (closing from task manager, power shutdown of the PC..etc)? "Task Manager" suggests you're using Windows, on which basis you've got a few options open to you, but fund

Re: Abnormal Interpreter Shutdown

2008-10-20 Thread Tim Golden
k3xji wrote: Hi all, Is there anyway to detect abnormal interpreter shutdown like (closing from task manager, power shutdown of the PC..etc)? "Task Manager" suggests you're using Windows, on which basis you've got a few options open to you, but fundamentally if someone p

Abnormal Interpreter Shutdown

2008-10-20 Thread k3xji
Hi all, Is there anyway to detect abnormal interpreter shutdown like (closing from task manager, power shutdown of the PC..etc)? Regards, -- http://mail.python.org/mailman/listinfo/python-list