On 19/12/2010 23:02, Victor Stinner wrote: > Le samedi 18 décembre 2010 à 08:50 -0500, James Y Knight a écrit : >> I think instead of calling abort() to kill the process, you should: >> - install the signal handler with SA_NODEFER|SA_RESETHAND (or if sigaction is not present, explicitly reset the action to SIG_DFL and unblock first thing upon entering the handler), and then, >> - at the end of the handler, kill(getpid(), orig_signal) in order to abort the process. > I don't think that kill() is available on Windows. Thanks to Brian Curtin there is now an os.kill() on Windows, but it doesn't handle the full range of signals. Michael -- http://www.voidspace.org.uk/ May you do good and not evil May you find forgiveness for yourself and forgive others May you share freely, never taking more than you give. -- the sqlite blessing http://www.sqlite.org/different.html
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4