[Python-Dev] Issue #8863 adds a new PYTHONNOFAULTHANDLER environment variable (original) (raw)
Michael Foord fuzzyman at voidspace.org.uk
Mon Dec 20 01:57:04 CET 2010
- Previous message: [Python-Dev] Issue #8863 adds a new PYTHONNOFAULTHANDLER environment variable
- Next message: [Python-Dev] Issue #8863 adds a new PYTHONNOFAULTHANDLER environment variable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 SANODEFER|SARESETHAND (or if sigaction is not present, explicitly reset the action to SIGDFL and unblock first thing upon entering the handler), and then, - at the end of the handler, kill(getpid(), origsignal) 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
--
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
- Previous message: [Python-Dev] Issue #8863 adds a new PYTHONNOFAULTHANDLER environment variable
- Next message: [Python-Dev] Issue #8863 adds a new PYTHONNOFAULTHANDLER environment variable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]