[Python-Dev] Issue #8863 adds a new PYTHONNOFAULTHANDLER environment variable

Michael Foord fuzzyman at voidspace.org.uk
Mon Dec 20 01:57:04 CET 2010

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.




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

More information about the Python-Dev mailing list