Le jeudi 08 avril 2010 08:11:09, Yaniv Aknin a écrit :
> Issue #7978 (http://bugs.python.org/issue7978) describes a bug in
> SocketServer where a received signal in SocketServer's select() call
> will raise an uncaught exception due to EINTR. The proposed solution
> was to wrap SocketServer's select() with something like twisted's
> untilConcludes function, which catches EINTR exceptions and re-calls
> the call (see issue for code).
> 
> However, before committing this to SocketServer, neologix raised the
> (valid) concern that this is generally-useful code, already duplicated
> at least in subprocess (_eintr_retry_call, subprocess.py), which can
> probably be moved to another module and be shared from there. (...)

+1 to share EINTR-related code, but I don't know the best place for such 
functions. Maybe the os module?

-- 
Victor Stinner
http://www.haypocalc.com/
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to