diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-04-15 00:40:40 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-04-15 00:40:40 (GMT) |
commit | b3dde134134c0bd08c2b7382157f9f08799aacf1 (patch) | |
tree | 120d3f96c9e3b3f4002cc5cad1b8bc24cb471a2c /Python/formatter_string.c | |
parent | 363dbccb2a77af59cbe3de5effa32017b4b73982 (diff) | |
download | cpython-b3dde134134c0bd08c2b7382157f9f08799aacf1.zip cpython-b3dde134134c0bd08c2b7382157f9f08799aacf1.tar.gz cpython-b3dde134134c0bd08c2b7382157f9f08799aacf1.tar.bz2 |
Fix os.kill tests to be more robust and work with slower machines.
Rather than depending on some sleep value, start up an interpreter
as a subprocess and communicate with it. Because subprocess pipes
can't be read from until EOF and I want to read from them before that,
use ctypes to peek by using PeekNamedPipe. Once the subprocess has
written the message, then it is ready to roll and accept signals.
After that, kill it.
Diffstat (limited to 'Python/formatter_string.c')
0 files changed, 0 insertions, 0 deletions