We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05b77ec commit a20266dCopy full SHA for a20266d
scripts/native_simulator/common/src/nce.c
@@ -52,7 +52,7 @@ NSI_INLINE int nce_sem_rewait(sem_t *semaphore)
52
{
53
int ret;
54
55
- while ((ret = sem_wait(semaphore)) == EINTR) {
+ while (((ret = sem_wait(semaphore)) == -1) && (errno == EINTR)) {
56
/* Restart wait if we were interrupted */
57
}
58
return ret;
scripts/native_simulator/common/src/nct.c
@@ -146,7 +146,7 @@ NSI_INLINE int nct_sem_rewait(sem_t *semaphore)
146
147
148
149
150
151
152
0 commit comments