mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-16 10:40:06 +00:00
ipc: Add macro TEMP_FAILURE_RETRY
- to ignore the signal -4 (ENTR)
This commit is contained in:
parent
ee04756678
commit
7c6b0d1e98
|
@ -85,7 +85,7 @@ client_loop(volatile struct ipc_client_state *ics)
|
|||
struct epoll_event event = XRT_STRUCT_INIT;
|
||||
|
||||
// We use epoll here to be able to timeout.
|
||||
int ret = epoll_wait(epoll_fd, &event, 1, half_a_second_ms);
|
||||
int ret = TEMP_FAILURE_RETRY(epoll_wait(epoll_fd, &event, 1, half_a_second_ms));
|
||||
if (ret < 0) {
|
||||
IPC_ERROR(ics->server, "Failed epoll_wait '%i', disconnecting client.", ret);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue