Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29530
| References | <CANXECd56v1aefBgEeFv6=96w9ooM-HyjbpvE+d2SaZpRXhX7Mg@mail.gmail.com> <CANXECd5LoiO_19dAF2UapPWE0HfZ=faGao_v9-dGwYvpOdPA2Q@mail.gmail.com> <CALwzidm7tttiEmcRRLAG54NZxWjOJhFMk1=nNVtgaePYsPprVw@mail.gmail.com> |
|---|---|
| Date | 2012-09-19 16:58 -0500 |
| Subject | Re: How to get the list of all my open file(descriptor)s and locks? |
| From | Ismael Farfán <sulfurfff@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.944.1348091944.27098.python-list@python.org> (permalink) |
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
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