|
@@ -218,10 +218,10 @@ retry_sem_wait:
|
|
|
return (CS_ERR_LIBRARY);
|
|
return (CS_ERR_LIBRARY);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+retry_sem_timedwait:
|
|
|
timeout.tv_sec = time(NULL) + IPC_SEMWAIT_TIMEOUT;
|
|
timeout.tv_sec = time(NULL) + IPC_SEMWAIT_TIMEOUT;
|
|
|
timeout.tv_nsec = 0;
|
|
timeout.tv_nsec = 0;
|
|
|
|
|
|
|
|
-retry_sem_timedwait:
|
|
|
|
|
res = sem_timedwait (sem, &timeout);
|
|
res = sem_timedwait (sem, &timeout);
|
|
|
if (res == -1 && errno == ETIMEDOUT) {
|
|
if (res == -1 && errno == ETIMEDOUT) {
|
|
|
pfd.fd = fd;
|
|
pfd.fd = fd;
|