homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brauwerman
Recipients
Date 2004年10月18日.17:39:51
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
On Solaris, calls to select.select() and
socket.socket() in telnetlib (and possibly others)
often fail due to unhandled EINTR signals from the OS
while select() is polling.
I think this problem is Solaris-specific since Solaris
has interruptible non-restartable sytem calls.
This behavior is apparently a known issue with the
system API select(); see
 man -s3c select
and
http://lists.community.tummy.com/pipermail/frpythoneers/2000-August/000122.html
The recommend fix from frpythoneers is to wrap the
select (and socket, respectively) calls in a loop:
while True:
 try:
 select.select(...)
 break
 except select.error, v:
 if v[0] == errno.EINTR: continue
 else: raise 
It's probably more appropriate to put the
exception-handling *inside* select.select (and
socket.socket) but that's beyond my expertise...
OS: SunOS 5.9 Generic_112233-11 sun4u sparc
SUNW,Sun-Blade-100
History
Date User Action Args
2008年01月20日 09:57:14adminlinkissue1049450 messages
2008年01月20日 09:57:14admincreate

AltStyle によって変換されたページ (->オリジナル) /