Tim Golden <[EMAIL PROTECTED]> writes: > R. Bernstein wrote: >> I don't know how well Microsoft Windows allows for sending a process a >> signal in Python, but if the Python signal module works reasonably >> well on Microsoft Windows, then reread >> http://bashdb.sourceforge.net/pydb/pydb/lib/node38.html > > The answer is: not terribly well. (Or, rather: in a very > limited way). You should, however, be able to make use > of the SetConsoleCtrlHandler win32 api which is exposed > by pywin32's win32api module, or could be accessed via > ctypes: > > http://timgolden.me.uk/pywin32-docs/win32api__SetConsoleCtrlHandler_meth.html > http://msdn.microsoft.com/en-us/library/ms686016(VS.85).aspx > > TJG
Interesting. Yes, it seems limited in that you get CTRL+C or CTRL+BREAK which seems to map to one of CTRL_CLOSE_EVENT, CTRL_LOGOFF_EVENT, or CTRL_SHUTDOWN_EVENT signals. If someone is interested in hooking this into pydb's signal handling mechanism, I'll consider adding in a future release. (If hacking the configure script to test for the presense Microsoft Windows or the win32api is tedious, I can manage doing that part.) -- http://mail.python.org/mailman/listinfo/python-list