Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #90907

Re: fork/exec & close file descriptors

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Gregory Ewing <greg.ewing@canterbury.ac.nz>
Newsgroups comp.lang.python
Subject Re: fork/exec & close file descriptors
Date Wed, 20 May 2015 13:10:36 +1200
Lines 10
Message-ID <cs258eFnssnU1@mid.individual.net> (permalink)
References <CANc-5UyeaWqThGFSAuGskz+S2Lrgq0ia9W9DHAie28t9GY+sww@mail.gmail.com> <CAPTjJmoj4STV9+t2-9JWed3t6Hxk5ibtaxYSFfX31oGz=kKR1g@mail.gmail.com> <CANc-5UwUxYjg=rQQ0Z_nM3s7o4+ghVYzG-9ajQY=LERWAsPrKw@mail.gmail.com> <CAPTjJmrdPcW8EkLR9Kq+n9sYEWB8eJ3fg=_JFQ2x_4QhDeg90Q@mail.gmail.com> <mailman.139.1432045882.17265.python-list@python.org>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net nUQn7L/khZUhDnDeJlhVkQO4Z5uVpK93xEqzhppSMs8pX2sJcO
Cancel-Lock sha1:qYzpU5Ea53glAAe0QrizMM9m5aM=
User-Agent Mozilla Thunderbird 1.0.5 (Macintosh/20050711)
X-Accept-Language en-us, en
In-Reply-To <mailman.139.1432045882.17265.python-list@python.org>
Xref csiph.com comp.lang.python:90907

Show key headers only | View raw


> On Tue, May 19, 2015 at 8:54 AM, Chris Angelico <rosuav@gmail.com 
> <mailto:rosuav@gmail.com>> wrote:
> 
>     On Linux (and possibly some other Unixes), /proc/self/fd may be of
>     use.

On MacOSX, /dev/fd seems to be the equivalent of this.

-- 
Greg

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: fork/exec & close file descriptors Skip Montanaro <skip.montanaro@gmail.com> - 2015-05-19 09:31 -0500
  Re: fork/exec & close file descriptors Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-05-20 13:10 +1200
    Re: fork/exec & close file descriptors Ian Kelly <ian.g.kelly@gmail.com> - 2015-05-20 12:30 -0600

csiph-web