Sai added the comment: 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) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26731> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com