This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author saifujinaro
Recipients paul.moore, saifujinaro, steve.dower, tim.golden, zach.ware
Date 2016-04-10.22:58:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460329124.94.0.138885617941.issue26731@psf.upfronthosting.co.za>
In-reply-to
Content
You can workaround this problem by adding a middleman process that sets close_fds=True:

############### childworkaround.py #################
import os
import subprocess

with open(os.devnull, 'w') as devnull:
    script = "import subprocess; import sys; subprocess.Popen(sys.argv[1:], close_fds=True)"
    proc = subprocess.Popen(['python', '-c', script, 'python', 'resident.py'], stdout=devnull, stderr=devnull, stdin=devnull)
History
Date User Action Args
2016-04-10 22:58:44saifujinarosetrecipients: + saifujinaro, paul.moore, tim.golden, zach.ware, steve.dower
2016-04-10 22:58:44saifujinarosetmessageid: <1460329124.94.0.138885617941.issue26731@psf.upfronthosting.co.za>
2016-04-10 22:58:44saifujinarolinkissue26731 messages
2016-04-10 22:58:44saifujinarocreate