Message350191
> It seems like self.stdout.read() hangs even after the child process
> has been killed.
This is an issue when the standard handles are inherited or duplicated to a grandchild process, and so on. In the case of Popen(sys.executable), the system is duplicating the standard handles implicitly because sys.executable is a console process (assuming it's python[_d].exe), among other criteria. An additional reference on the write side prevents the pipe from closing. fh.read() in the grandparent won't return as long as there's a writer that could potentially write more data. |
|
Date |
User |
Action |
Args |
2019-08-22 15:00:41 | eryksun | set | recipients:
+ eryksun, vstinner, jkloth, jeremy.kloth, nanjekyejoannah |
2019-08-22 15:00:41 | eryksun | set | messageid: <1566486041.38.0.807256519257.issue37531@roundup.psfhosted.org> |
2019-08-22 15:00:41 | eryksun | link | issue37531 messages |
2019-08-22 15:00:41 | eryksun | create | |
|