Skip to content
Snippets Groups Projects
Commit 5bc50f143181 authored by Jean-Francois Pieronne's avatar Jean-Francois Pieronne
Browse files

Fix missing sys$wake

parent 1d463466f4af
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,11 @@ ...@@ -81,7 +81,11 @@
case KDuration: case KDuration:
break; break;
case KLockCount: case KLockCount:
if (TotLock == 0) EndPass = 1; if (TotLock == 0) {
EndPass = 1;
s = sys$wake(0, 0);
if (! $VMS_STATUS_SUCCESS(s)) exit(s);
}
else --TotLock; else --TotLock;
break; break;
default: default:
...@@ -111,7 +115,11 @@ ...@@ -111,7 +115,11 @@
case KDuration: case KDuration:
break; break;
case KLockCount: case KLockCount:
if (TotLock == 0) EndPass = 1; if (TotLock == 0) {
s = sys$wake(0, 0);
if (! $VMS_STATUS_SUCCESS(s)) exit(s);
EndPass = 1;
}
else --TotLock; else --TotLock;
break; break;
default: default:
...@@ -139,4 +147,5 @@ ...@@ -139,4 +147,5 @@
#else #else
static void TimerAST() { static void TimerAST() {
#endif #endif
int s;
EndPass = 1; EndPass = 1;
...@@ -142,4 +151,6 @@ ...@@ -142,4 +151,6 @@
EndPass = 1; EndPass = 1;
s = sys$wake(0, 0);
if (! $VMS_STATUS_SUCCESS(s)) exit(s);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment