[New-bugs-announce] [issue22015] C signal handler doesn't save/restore errno

STINNER Victor report at bugs.python.org
Sun Jul 20 11:37:48 CEST 2014

New submission from STINNER Victor:

The signal module has a wakefd feature which calls write(fd) in a signal handler, but the signal handler replaces errno without saving/restoring it.

See "Practice 4" in this article:

Attached patch fixes the issue for Python 3.5. The bug should be fixed in Python 2.7, 3.4 and 3.5.

files: signal_errno.patch
keywords: patch
messages: 223504
nosy: haypo, neologix, pitrou
priority: normal
severity: normal
status: open
title: C signal handler doesn't save/restore errno
versions: Python 2.7, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file36000/signal_errno.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list