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

Discussion in 'Python' started by Ian Kelly, Sep 19, 2012.

  1. Ian Kelly

    Ian Kelly Guest

    On Wed, Sep 19, 2012 at 2:36 PM, Ismael Farfán <> 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.
    Ian Kelly, Sep 19, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ismael Farfán
    Replies:
    0
    Views:
    203
    Ismael Farfán
    Sep 19, 2012
  2. Ismael Farfán
    Replies:
    0
    Views:
    205
    Ismael Farfán
    Sep 19, 2012
  3. Ian Kelly
    Replies:
    0
    Views:
    228
    Ian Kelly
    Sep 19, 2012
  4. Ismael Farfán
    Replies:
    0
    Views:
    230
    Ismael Farfán
    Sep 19, 2012
  5. Chris Angelico
    Replies:
    1
    Views:
    280
    Hans Mulder
    Sep 20, 2012
Loading...

Share This Page