Re: Passing File Descriptors To Subprocesses

2018-05-11 Thread Terry Reedy
On 5/11/2018 11:23 AM, pevo...@gmail.com wrote: I encountered the same issue with Python 3.4 on CentOS 7 when using only the close_fds argument. Since I am passing a lot of dynamically obtained file descriptors, using the pass_fds argument is impossible for my case. Setting close_fds to False

Re: Passing File Descriptors To Subprocesses

2018-05-11 Thread pevogam
I encountered the same issue with Python 3.4 on CentOS 7 when using only the close_fds argument. Since I am passing a lot of dynamically obtained file descriptors, using the pass_fds argument is impossible for my case. Setting close_fds to False *but* also explicitly making the fds inheritable u

Re: Passing File Descriptors To Subprocesses

2016-07-17 Thread Lawrence D’Oliveiro
On Sunday, July 17, 2016 at 3:01:36 PM UTC+12, eryk sun wrote: > It works correctly in 3.4+ ... Yup, confirmed it happens only in 3.3. -- https://mail.python.org/mailman/listinfo/python-list

Re: Passing File Descriptors To Subprocesses

2016-07-16 Thread eryk sun
On Sun, Jul 17, 2016 at 1:59 AM, Lawrence D’Oliveiro wrote: > The various subprocess functions > have > arguments called “close_fds” and “pass_fds”, which specify which file > descriptors are to be > left open in the child process. Yet no matte

Passing File Descriptors To Subprocesses

2016-07-16 Thread Lawrence D’Oliveiro
A few years ago I wrote a tool to do comparisons between different versions of the Android API. Then one day, after a Python update (from the dates, it had to have been some version of 3.2), it stopped working. It took quite a while--over a year--until I figured