Author martin.panter
Recipients haypo, martin.panter, pitrou, python-dev, serhiy.storchaka
Date 2016-05-20.12:03:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1463745790.66.0.504352481545.issue26741@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-05-20 12:03:10martin.pantersetrecipients: + martin.panter, pitrou, haypo, python-dev, serhiy.storchaka
2016-05-20 12:03:10martin.pantersetmessageid: <1463745790.66.0.504352481545.issue26741@psf.upfronthosting.co.za>
2016-05-20 12:03:10martin.panterlinkissue26741 messages
2016-05-20 12:03:10martin.pantercreate