Message265937
I tried out your code on the webbrowser module, and it does raise a warning:
>>> import webbrowser
>>> b = webbrowser.get("chromium")
>>> b.open("https://bugs.python.org/issue26741")
/home/proj/python/cpython/Lib/subprocess.py:1011: ResourceWarning: running subprocess <subprocess.Popen object at 0x7f1ef31c90c0>
source=self)
True
At this point, the Python interpreter has a child process “chromium” which is left as a zombie when it exits. I guess the easiest solution (at least for Unix) would be to spawn an intermediate launcher process that exited after launching the web browser process. |
|
Date |
User |
Action |
Args |
2016-05-20 12:03:10 | martin.panter | set | recipients:
+ martin.panter, pitrou, vstinner, python-dev, serhiy.storchaka |
2016-05-20 12:03:10 | martin.panter | set | messageid: <1463745790.66.0.504352481545.issue26741@psf.upfronthosting.co.za> |
2016-05-20 12:03:10 | martin.panter | link | issue26741 messages |
2016-05-20 12:03:10 | martin.panter | create | |
|