Commit a26b403c authored by Claes Sjofors's avatar Claes Sjofors

Rt programs, semaphore deadlock removed at shutdown

parent 700d54fb
......@@ -355,6 +355,9 @@ sect_Lock (
#elif defined OS_POSIX
while (posix_sem_wait(mp) != 0) {
if (errno != EINTR) {
if ( errno == EINVAL) {
_exit(-1);
}
perror("sect_Lock: sem_wait ");
lsts = 2;
break;
......@@ -390,4 +393,4 @@ sect_Unlock (
errh_ReturnOrBugcheck(ODD(lsts), sts, lsts, "");
}
\ No newline at end of file
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment