fix: add start pending mode to mitigate Terminal output redirection issue

This commit is contained in:
2026-05-07 07:32:44 +02:00
parent f9df9eba4d
commit d04d7194b9
4 changed files with 59 additions and 11 deletions
+3 -1
View File
@@ -55,6 +55,7 @@ namespace Sched {
int runningOnCpu; // CPU index running this process (-1 if not running)
bool killPending = false; // Set by Sys_Kill when target is running on another CPU
bool reapReady = false; // Set once teardown is complete and BSP may free slot resources
bool startPending = false; // Spawned but not yet made runnable
// I/O redirection for GUI terminal
bool redirected = false;
@@ -85,7 +86,8 @@ namespace Sched {
};
void Initialize();
int Spawn(const char* vfsPath, const char* args = nullptr);
int Spawn(const char* vfsPath, const char* args = nullptr, bool startReady = true);
int StartProcess(int pid);
void Schedule();
// True when there is runnable work somewhere in the process table.