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


Groups > comp.lang.python > #29530

Re: How to get the list of all my open file(descriptor)s and locks?

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <sulfurfff@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subject:file': 0.07; 'subject:How': 0.09; 'descriptor': 0.09; 'satisfy': 0.09; 'sep': 0.09; 'sockets': 0.09; 'sure,': 0.09; 'cc:addr:python-list': 0.10; "(i'm": 0.16; 'pipes': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'exists': 0.17; 'received:74.125.82.174': 0.23; 'cc:2**0': 0.23; 'seems': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'subject:list': 0.28; 'concern': 0.29; 'url:mailman': 0.29; 'subject:all': 0.29; 'mode': 0.30; 'url:python': 0.32; 'file': 0.32; 'url:listinfo': 0.32; 'getting': 0.33; 'received:74.125.82': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'subject:?': 0.35; 'there': 0.35; 'received:74.125': 0.36; 'url:org': 0.36; 'too': 0.36; 'does': 0.37; 'well.': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'some': 0.38; 'things': 0.38; 'header:Received:5': 0.40; 'url:mail': 0.40; 'your': 0.60; "you'll": 0.62; 'subject:get': 0.81; 'induce': 0.84; 'alone.': 0.91; 'yours.': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=VqjCt35mG1X7GwQ25rCzF07k+EzIPN5yt2BQqZFp9sg=; b=W1WiqqsIKZAZH9YCDIr7KXJT7oHR+abd54DQgkzX1Nx5SPUPwMzEYbB5R96LhK16cS kJY/4L6m625TvAP0EhjwlhtqOfiyYPo5/FdeyVdqTSbBcsC2YgzSMv8mBm2iyJcn9A2n IsfW7RZLfd9RZxayAJcbvujebVsv0ETBAmgO6eXMqb2j/NcCj3zl263uLjIlWo43OzMe vNY62KW+Zj23FeoQutE/U/QoRWx5rlDc4yxrZaqgZ7L5T7MqgZ85Zt79yvEXcRZ/11+j udiIk/CpGzp+tQ+nHM8v64ueWcIPAivTAnXXtfuiIz/kZqtDLNqwBj3m48jMuDaUWqmj tExg==
MIME-Version 1.0
In-Reply-To <CALwzidm7tttiEmcRRLAG54NZxWjOJhFMk1=nNVtgaePYsPprVw@mail.gmail.com>
References <CANXECd56v1aefBgEeFv6=96w9ooM-HyjbpvE+d2SaZpRXhX7Mg@mail.gmail.com> <CANXECd5LoiO_19dAF2UapPWE0HfZ=faGao_v9-dGwYvpOdPA2Q@mail.gmail.com> <CALwzidm7tttiEmcRRLAG54NZxWjOJhFMk1=nNVtgaePYsPprVw@mail.gmail.com>
Date Wed, 19 Sep 2012 16:58:56 -0500
Subject Re: How to get the list of all my open file(descriptor)s and locks?
From Ismael Farfán <sulfurfff@gmail.com>
To Ian Kelly <ian.g.kelly@gmail.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc Python <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.944.1348091944.27098.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1348091944 news.xs4all.nl 6875 [2001:888:2000:d::a6]:59084
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:29530

Show key headers only | View raw


2012/9/19 Ian Kelly <ian.g.kelly@gmail.com>:
> On Wed, Sep 19, 2012 at 2:36 PM, Ismael Farfán <sulfurfff@gmail.com> wrote:
>> It seems like I can use os.fstat to find out if a fd exists and also
>> get it's type and mode (I'm getting some pipes too : )
>
> Sure, because files and pipes both use the file descriptor
> abstraction.  If your process does any networking, you'll find sockets
> in there as well.
> --
> http://mail.python.org/mailman/listinfo/python-list

Seems like things will get interesting :D

Ismael


-- 
Do not let me induce you to satisfy my curiosity, from an expectation,
that I shall gratify yours. What I may judge proper to conceal, does
not concern myself alone.

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


Thread

Re: How to get the list of all my open file(descriptor)s and locks? Ismael Farfán <sulfurfff@gmail.com> - 2012-09-19 16:58 -0500

csiph-web