Fix fork() syscall

This commit is contained in:
Alex
2023-05-22 00:43:45 +03:00
parent 5cb799df89
commit 061363d85d
5 changed files with 32 additions and 44 deletions

View File

@ -201,7 +201,7 @@ namespace InterProcessCommunication
warn("Interrupts are disabled. This may cause a kernel hang.");
debug("Waiting for IPC %d (now %s)", ID, Hnd->Listening ? "listening" : "ready");
while (Hnd->Listening)
CPU::Pause();
TaskManager->Schedule();
debug("IPC %d is ready", ID);
return IPCSuccess;
}