[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

Ross Lagerwall report at bugs.python.org
Sat Jun 25 08:37:05 CEST 2011


Ross Lagerwall <rosslagerwall at gmail.com> added the comment:

> What do you mean? signal.SIGPOLL exists in Python 3.3.

Right, si_band added.

> - test_sigwaitinfo(), test_sigtimedwait_poll(), test_sigwaitinfo_interrupted() are called from a child process. In test_wait(), I chose to write manually to stdout and call os._exit(1) (oh, I forgot an explicit sys.stdout.flush()). I don't know if you can use TestCase methods in a child process (I don't know what is written to stdout, _wait_helper() calls os._exit).

I assume you mean stderr? Well anyway if the assert* fails, an exception is raised and then caught by this code in wait_helper():
"""
except BaseException as err:
                print("error: {}".format(err), file=sys.stderr)
                sys.stderr.flush()
                os._exit(1)
"""
which prints it to stderr.
If this is OK, I'll commit the patch.

----------
Added file: http://bugs.python.org/file22452/issue12303_v3.patch

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


More information about the Python-bugs-list mailing list