[issue8354] siginterrupt with flag=False is reset when signal received

Charles-Francois Natali report at bugs.python.org
Thu Apr 15 15:36:32 CEST 2010


Charles-Francois Natali <neologix at free.fr> added the comment:

> Will the modified test fail on platforms that don't define HAVE_SIGACTION?

Well, in theory, if the system has siginterrupt but not sigaction, it will fail. But as said, I don't think it's possible, see man siginterrupt:
"      This library routine uses an extension of the sigaction(2) system call
     that is not available in 4.2BSD, hence it should not be used if backward
     compatibility is needed."

and the test right now has this at the beginning:
if sys.platform[:3] in ('win', 'os2') or sys.platform == 'riscos':
    raise unittest.SkipTest("Can't test signal on %s" % \
                                   sys.platform)

So it pretty much assumes that any Unix system has siginterrupt, hence sigaction, so it should be safe.
So I'd say in theory, it will, but I don't think that siginterrupt can be available without sigaction anyway.
So feel free to modify the test, or not ;-)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8354>
_______________________________________


More information about the Python-bugs-list mailing list