ipc: Add macro TEMP_FAILURE_RETRY

- to ignore the signal -4 (ENTR)
This commit is contained in:
Hui Xu 2023-11-01 22:45:21 +08:00 committed by Jakob Bornecrantz
parent ee04756678
commit 7c6b0d1e98

View file

@ -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;