Skip to content

util: block SIGALRM during posix_fallocate

Peter Hutterer requested to merge whot/libei:wip/posix_fallocate into main

posix_fallocate() may be interrupted (EINTR), e.g. by SIGALRM in the X server's smart scheduler. On slow systems and for large allocations this means we cannot ever succeed so let's block SIGALRM like everyone else does.

See e.g. xorg/xserver@4cfee398 and the same code is in libwayland, libdecor, etc.

Merge request reports

Loading