diff options
| author | Olivier Fourdan <ofourdan@redhat.com> | 2022-05-30 09:14:04 +0200 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2022-06-09 19:18:47 +0000 |
| commit | dd00220b1ef6a4c823632a02b535b40602bfb8d4 (patch) | |
| tree | 856b411bf4cd0d11d2985db9bf10aafd7cbb11b6 /tests | |
| parent | build: bump to version 1.20.92 for the beta release (diff) | |
| download | wayland-dd00220b1ef6a4c823632a02b535b40602bfb8d4.tar wayland-dd00220b1ef6a4c823632a02b535b40602bfb8d4.tar.gz wayland-dd00220b1ef6a4c823632a02b535b40602bfb8d4.tar.bz2 wayland-dd00220b1ef6a4c823632a02b535b40602bfb8d4.tar.lz wayland-dd00220b1ef6a4c823632a02b535b40602bfb8d4.tar.xz wayland-dd00220b1ef6a4c823632a02b535b40602bfb8d4.tar.zst wayland-dd00220b1ef6a4c823632a02b535b40602bfb8d4.zip | |
cursor/os-compatibility: handle EINTR gracefully
If os_resize_anonymous_file() called from os_create_anonymous_file()
fails with EINTR (Interrupted system call), then the buffer allocation
fails.
To avoid that, retry posix_fallocate() on EINTR.
However, in the presence of an alarm, the interrupt may trigger
repeatedly and prevent a large posix_fallocate() to ever complete
successfully, so we need to first block SIGALRM to prevent this.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
