[Python-bugs-list] [ python-Bugs-717614 ] Freebsd - Cannot open file discriptor 3

SourceForge.net noreply@sourceforge.net
Tue, 08 Apr 2003 09:50:53 -0700


Bugs item #717614, was opened at 2003-04-08 10:50
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=717614&group_id=5470

Category: Python Library
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Jim Ramsay (lack)
Assigned to: Nobody/Anonymous (nobody)
Summary: Freebsd - Cannot open file discriptor 3

Initial Comment:
For some reason on my FreeBSD system whenever I run
python I am unable to access file descriptor 3 or 4. 
According to my system's fstat, there is a pipe there:

lack     python     36683    3* pipe cd5b2cc0 <->
cd99f9e0      0 rw
lack     python     36683    4* pipe cd99f9e0 <->
cd5b2cc0      0 rw

But I did not open this pipe, nor can I figure out
where it came from.

I also cannot close this file descriptor or use it in
any way - I recieve the error:

>>> os.close(3)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
OSError: [Errno 9] Bad file descriptor
>>>

There is some strange behaviour if I close one of the
standard descriptors first:

>>> os.close(2)
>>> os.close(3)
>>> os.close(4)
>>> 

But despite the lack of error messages, the pipe from 3
to 4 is still open.

I do not know why this happens. and am at a loss at how
to access FD#3.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=717614&group_id=5470