if (read_size == sizeof(recv_id)) {
ret = id == recv_id;
if (ret == FALSE)
- MM_RM_ERROR("Sync is received from wrong client #%"PRIu64,
- recv_id);
+ MM_RM_ERROR("Sync is received from wrong client #%"PRIu64, recv_id);
/*
* Wait POLLHUP to avoid situation when client sent last sync
* through the pipe, but not already closed the pipe handle and
* the next sync.
*/
sync.revents = 0;
- if (poll(&sync, 1, RELEASE_CB_SYNC_TIMEOUT * 1000) == 0 ||
- (sync.revents & (POLLHUP | POLLERR)) == 0)
+ if (poll(&sync, 1, RELEASE_CB_SYNC_TIMEOUT * 1000) == 0 || (sync.revents & (POLLHUP | POLLERR)) == 0)
MM_RM_ERROR("The client didn't close the FIFO");
} else {
- MM_RM_ERROR("Read is failed (revents=%hd,read_size=%zd)",
- sync.revents, read_size);
+ MM_RM_ERROR("Read is failed (revents=%hd,read_size=%zd)", sync.revents, read_size);
ret = FALSE;
}
}