[Python-Dev] Issue #8863 adds a new?PYTHONNOFAULTHANDLER?environment variable (original) (raw)
Bobby Impollonia bobbyi at gmail.com
Thu Dec 23 19:29:17 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 Wed, Dec 22, 2010 at 9:26 PM, Victor Stinner <vstinner at edenwall.com> wrote:
If the kernel doesn't do that for us, I suppose that the compiler or something else does it for us.
GCC does this for you if you declare your function with attribute(signal). In general, the compiler doesn't know that a function will be used as a signal and no portable way to indicate this.
Anyway, it would just be horrible if a signal handler was responsible to save/restore integer registers.
Horrible or not, the existence of attribute(signal) seems to indicate that this is the case on some platform, or at least was historically. I don't know whether it's the case now on any platform that Python supports.
- 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 ]