Message317323
The 2nd example with subprocess.run() creates two threads in the Python process, since you're redirecting both stdout and stderr to pipes and run() calls communicate(). The first example with subprocess.Popen() shouldn't create any threads. In either case, nothing in subprocess should be opening a handle for a thread.
Please attach a minimal script that reproduces the problem, preferably running a command everyone can test such as "python.exe -V" and preferably with shell=False if the problem can be reproduced without the shell. Also, describe your Python setup, i.e. the installed distribution and packages. Something could be monkey patching the subprocess module. |
|
Date |
User |
Action |
Args |
2018-05-22 18:57:01 | eryksun | set | recipients:
+ eryksun, gregory.p.smith, paul.moore, giampaolo.rodola, tim.golden, zach.ware, steve.dower, GranPrego |
2018-05-22 18:57:01 | eryksun | set | messageid: <1527015421.26.0.682650639539.issue33603@psf.upfronthosting.co.za> |
2018-05-22 18:57:01 | eryksun | link | issue33603 messages |
2018-05-22 18:57:01 | eryksun | create | |
|