[New-bugs-announce] [issue12224] problem with siginterrupt

Zhiping Deng report at bugs.python.org
Tue May 31 13:23:34 CEST 2011


New submission from Zhiping Deng <kofreestyler at gmail.com>:

If socket timeout > 0, then there is no way to automatically
restart some socket calls like recv(). 
Calling siginterrupt(False) is useless, because python calls
internal_select() if socket has timeout, and select returns
error(EINTR) once interrupted by a signal, regardless of the
SA_RESTART flags.

So a user may have to wrap every socket calls in this case.

I found some related discussions in http://bugs.python.org/issue7978

----------
components: Library (Lib)
files: siginterrupt_example.py
messages: 137357
nosy: Zhiping.Deng
priority: normal
severity: normal
status: open
title: problem with siginterrupt
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file22207/siginterrupt_example.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12224>
_______________________________________


More information about the New-bugs-announce mailing list