Message302281
> 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:38 | eryksun | set | recipients:
+ eryksun, r.david.murray, martin.panter, Leonardo Francalanci |
| 2017-09-15 18:03:38 | eryksun | set | messageid: <[email protected]> |
| 2017-09-15 18:03:38 | eryksun | link | issue31447 messages |
| 2017-09-15 18:03:38 | eryksun | create | |
|