mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-23 13:05:12 +00:00
WindowServer: Don't spawn new processes with WindowServer as parent.
I don't want to have to wait() on them from the WindowServer. Let's just set new processes free and someone else will take care of them.
This commit is contained in:
parent
269f9ae524
commit
1d758fd2ce
Notes:
sideshowbarker
2024-07-19 15:45:38 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1d758fd2ceb
1 changed files with 2 additions and 2 deletions
|
@ -196,12 +196,12 @@ WSWindowManager::WSWindowManager()
|
|||
m_system_menu->on_item_activation = [] (WSMenuItem& item) {
|
||||
if (item.identifier() == 0) {
|
||||
int error;
|
||||
Process::create_user_process("/bin/Terminal", 100, 100, current->pid(), error);
|
||||
Process::create_user_process("/bin/Terminal", 100, 100, 0, error);
|
||||
return;
|
||||
}
|
||||
if (item.identifier() == 4) {
|
||||
int error;
|
||||
Process::create_user_process("/bin/About", 100, 100, current->pid(), error);
|
||||
Process::create_user_process("/bin/About", 100, 100, 0, error);
|
||||
return;
|
||||
}
|
||||
kprintf("WSMenu 1 item activated: '%s'\n", item.text().characters());
|
||||
|
|
Loading…
Add table
Reference in a new issue