Closed shastah closed 2 years ago
Can one of the admins verify this patch?
Quite some users are encountering the same issue, where requests to pacemaker-based daemon fail on IPC at times.
It seems sensible to do retrying under the situation.
For the case of ! HAVE_POSIX_FALLOCATE in below, a noticeable difference is, if the situation continues occurring, it keeps retrying write() rather than for up to a limited amount of times though. So a question is if it makes sense to do the same with posix_fallocate().
test this please
Every now and then Pacemaker reports errors:
While it probably might be addressed in Pacemaker code, a simple retry loop in case posix_fallocate(3) returns EINTR seems to be a decent workaround.
Fixes: #451
Signed-off-by: Jakub Jankowski shasta@toxcorp.com