comparison hgext/hgk.py @ 32049:ed42e00a5c4e

progress: retry ferr.flush() and .write() on EINTR (issue5532) See the inline comment how this could mitigate the issue. I couldn't reproduce the exact problem on my Linux machine, but there are at least two people who got EINTR in progress.py, and it seems file_write() of Python 2 is fundamentally broken [1]. Let's make something in on 4.2. [1]: https://hg.python.org/cpython/file/v2.7.13/Objects/fileobject.c#l1850
author Yuya Nishihara <yuya@tcha.org>
date Thu, 13 Apr 2017 22:31:17 +0900
parents dddc4812aa7a
children 46ba2cdda476
comparison
equal deleted inserted replaced
32048:c3ef33fd0058 32049:ed42e00a5c4e