fix: add start pending mode to mitigate Terminal output redirection issue
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user