[IPython-user] win32: ctrl + break exits IPython immediately

Thomas Heller theller@ctypes....
Fri Sep 7 13:03:41 CDT 2007


Fernando Perez schrieb:
> On 9/7/07, Ville M. Vainio <vivainio@gmail.com> wrote:
>> I think this issue appeared with my new work computer (py 2.5.1,
>> winxp). Ctrl + c is an ok keyboardinterrupt, ctrl + break exits
>> IPython immediately with no crash reports or anything.
>>
>> Please try it on your win32 box and report back.
> 
> I don't really know win32 signals, but it may be akin to a 'kill -9'
> under *nix, which is also uncatchable.  If that's the case, there's
> really nothing we can do, since that signal (the -9 under *nix) is
> directly handled by the OS kernel, without giving the process a chance
> to do anything at all.

I think that the SetConsoleCtrlHandler function should be able to catch ctrl + break,
but I cannot currently get it to work.

http://msdn2.microsoft.com/en-us/library/ms686016.aspx

Thomas



More information about the IPython-user mailing list