Author eryksun
Recipients Leonardo Francalanci, eryksun, martin.panter, r.david.murray
Date 2017-09-15.18:03:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> I tried with stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL, 
> stderr=subprocess.DEVNULL

As I said previously, you also need to make the current standard handles non-inheritable. Pending issue 19764, in 3.7 you'll be able to override stdin, stdout, and stderr with the default close_fds=True. Currently overriding them implicitly sets close_fds=False, in which case you need to manually ensure that the current standard handles (i.e. the pipe handles) can't be inherited. For example:

    os.set_inheritable(0, False)
    os.set_inheritable(1, False)
    os.set_inheritable(2, False)
Date User Action Args
2017-09-15 18:03:38eryksunsetrecipients: + eryksun, r.david.murray, martin.panter, Leonardo Francalanci
2017-09-15 18:03:38eryksunsetmessageid: <>
2017-09-15 18:03:38eryksunlinkissue31447 messages
2017-09-15 18:03:38eryksuncreate