mirror of
https://github.com/RGBCube/serenity
synced 2025-07-05 23:17:34 +00:00
Start the WindowServer process with high priority.
This commit is contained in:
parent
640360e958
commit
53c69dbade
1 changed files with 3 additions and 1 deletions
|
@ -101,10 +101,12 @@ VFS* vfs;
|
||||||
|
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
Process::create_user_process("/bin/WindowServer", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, { }, tty0);
|
auto* window_server_process = Process::create_user_process("/bin/WindowServer", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, { }, tty0);
|
||||||
if (error != 0) {
|
if (error != 0) {
|
||||||
dbgprintf("error: %d\n", error);
|
dbgprintf("error: %d\n", error);
|
||||||
|
hang();
|
||||||
}
|
}
|
||||||
|
window_server_process->set_priority(Process::HighPriority);
|
||||||
//Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, move(environment), tty0);
|
//Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, move(environment), tty0);
|
||||||
Process::create_user_process("/bin/Terminal", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, { }, tty0);
|
Process::create_user_process("/bin/Terminal", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, { }, tty0);
|
||||||
#ifdef SPAWN_GUITEST
|
#ifdef SPAWN_GUITEST
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue