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 ( ...@@ -355,6 +355,9 @@ sect_Lock (
#elif defined OS_POSIX #elif defined OS_POSIX
while (posix_sem_wait(mp) != 0) { while (posix_sem_wait(mp) != 0) {
if (errno != EINTR) { if (errno != EINTR) {
if ( errno == EINVAL) {
_exit(-1);
}
perror("sect_Lock: sem_wait "); perror("sect_Lock: sem_wait ");
lsts = 2; lsts = 2;
break; break;
......
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