commit | b3dde134134c0bd08c2b7382157f9f08799aacf1 | [log] [tgz] |
---|---|---|
author | Brian Curtin <brian.curtin@gmail.com> | Thu Apr 15 00:40:40 2010 +0000 |
committer | Brian Curtin <brian.curtin@gmail.com> | Thu Apr 15 00:40:40 2010 +0000 |
tree | 120d3f96c9e3b3f4002cc5cad1b8bc24cb471a2c | |
parent | 363dbccb2a77af59cbe3de5effa32017b4b73982 [diff] |
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.