cpython: e51d8a160a8a (original) (raw)

Mercurial > cpython

changeset 69099:e51d8a160a8a

Issue #11393: fault handler uses raise(signum) for SIGILL on Windows [#11393]

Victor Stinner victor.stinner@haypocalc.com
date Fri, 01 Apr 2011 12:08:57 +0200
parents 214d0608fb84
children a4fa79b0d478
files Modules/faulthandler.c
diffstat 1 files changed, 12 insertions(+), 15 deletions(-)[+] [-] Modules/faulthandler.c 27

line wrap: on

line diff

--- a/Modules/faulthandler.c +++ b/Modules/faulthandler.c @@ -270,14 +270,16 @@ faulthandler_fatal_error( else _Py_DumpTraceback(fd, tstate); -#ifndef MS_WINDOWS

+#ifdef MS_WINDOWS

+#endif

-#endif } /* Install handler for fatal signals (SIGSEGV, SIGFPE, ...). */ @@ -681,8 +683,9 @@ static PyObject * faulthandler_sigsegv(PyObject *self, PyObject *args) { #if defined(MS_WINDOWS)

@@ -724,13 +727,7 @@ faulthandler_sigbus(PyObject *self, PyOb static PyObject * faulthandler_sigill(PyObject *self, PyObject *args) { -#if defined(MS_WINDOWS)

-#else raise(SIGILL); -#endif Py_RETURN_NONE; } #endif