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

noreply@sourceforge.net noreply@sourceforge.net
Mon, 15 Jul 2002 07:34:48 -0700


Patches item #581705, was opened at 2002-07-16 00: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: Open
Resolution: None
Priority: 5
Submitted By: Rasjid Wilcox (rasjidw)
Assigned to: Nobody/Anonymous (nobody)
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.


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

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