[issue23680] Sporadic freeze in test_interrupted_write_retry_text
Antoine Pitrou
report at bugs.python.org
Mon Mar 16 17:41:08 CET 2015
Antoine Pitrou added the comment:
Note that PIPE_MAX_SIZE can be large. Perhaps move the memory allocation (i.e. `item * (support.PIPE_MAX_SIZE // len(item) + 1)`) before the alarm(1) call?
Or what if alarm_interrupt is simply set up to retrigger the signal? e.g. instead of:
def alarm_interrupt(self, sig, frame):
1/0
write:
def alarm_interrupt(self, sig, frame):
signal.alarm(1)
1/0
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23680>
_______________________________________
More information about the Python-bugs-list
mailing list