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


Groups > comp.lang.python > #29510 > unrolled thread

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

Started byIsmael Farfán <sulfurfff@gmail.com>
First post2012-09-19 12:34 -0500
Last post2012-09-19 12:34 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

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

#29510 — How to get the list of all my open file(descriptor)s and locks?

FromIsmael Farfán <sulfurfff@gmail.com>
Date2012-09-19 12:34 -0500
SubjectHow to get the list of all my open file(descriptor)s and locks?
Message-ID<mailman.928.1348076066.27098.python-list@python.org>
Hello list

>From man 2 EXECVE
"By default, file descriptors remain open across an execve()"

And from man 2 FCNTL
"Record locks are... preserved across an execve(2)."

So the question:
* If I execve a python script (from C), how can I retrieve the list of
files, and optionally the list of locks, from within the execve(d)
python process so that I can use them?


Some more info:
I'm working with exotic stuff like AIX and Solaris 10 (Windows and
linux too :) and my lowest common denominator is python 2.3.

>From a standalone test within the interpreter I'd expect to get (at
least) std(in/out/err).

If more information is needed in order to help me, please let me know.

Cheers
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web