refactor: mount system reworked
[lunaix-os.git] / lunaix-os / kernel / signal.c
index db1d4ff8ac89817f550905763fe3161196d55a4c..5f0c868789d9af36d6286dfae989b9a385e28546 100644 (file)
@@ -188,11 +188,10 @@ __do_pause()
 {
     __current->flags |= PROC_FINPAUSE;
 
-    __SYSCALL_INTERRUPTIBLE({
-        while ((__current->flags & PROC_FINPAUSE)) {
-            sched_yield();
-        }
-    })
+    while ((__current->flags & PROC_FINPAUSE)) {
+        sched_yieldk();
+    }
+
     __current->k_status = EINTR;
 }