[Patches] [ python-Patches-581705 ] fix to pty.spawn error on Linux

noreply@sourceforge.net noreply@sourceforge.net
Sun, 28 Jul 2002 02:43:33 -0700


Patches item #581705, was opened at 2002-07-15 16:34
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=581705&group_id=5470

Category: Library (Lib)
Group: Python 2.2.x
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Rasjid Wilcox (rasjidw)
Assigned to: Martin v. Löwis (loewis)
Summary: fix to pty.spawn error on Linux

Initial Comment:
I submitted a bug report, id 581698 called 'pty.spawn -
wrong error caught'.

System: RedHat Linux 7.3, using Python2.

About a year ago, the final 'except' statement was
changed to catch IOError rather than just error. 
However, at least on my system, the os.read call raises
an OSError, not an IOError.  Therefore, the wrong error
type is now caught.

Patch attached.

Rasjid.


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

>Comment By: Martin v. Löwis (loewis)
Date: 2002-07-28 11:43

Message:
Logged In: YES 
user_id=21627

Thanks for the patch. Committed (in a slightly modified
form) as pty.py 1.12.

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

Comment By: Rasjid Wilcox (rasjidw)
Date: 2002-07-27 09:54

Message:
Logged In: YES 
user_id=39640

Actually, a bit more testing revealed some more errors when
the main process had its standard input and output something
other than a tty.

I attach my second version of the patch.

Rasjid.


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

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