summaryrefslogtreecommitdiffstats
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-04-15 00:40:40 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-04-15 00:40:40 (GMT)
commitb3dde134134c0bd08c2b7382157f9f08799aacf1 (patch)
tree120d3f96c9e3b3f4002cc5cad1b8bc24cb471a2c /Python/Python-ast.c
parent363dbccb2a77af59cbe3de5effa32017b4b73982 (diff)
downloadcpython-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/Python-ast.c')
0 files changed, 0 insertions, 0 deletions