浏览代码

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.
Andreas Kling 6 年之前
父节点
当前提交
1d758fd2ce
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      WindowServer/WSWindowManager.cpp

+ 2 - 2
WindowServer/WSWindowManager.cpp

@@ -196,12 +196,12 @@ WSWindowManager::WSWindowManager()
         m_system_menu->on_item_activation = [] (WSMenuItem& item) {
         m_system_menu->on_item_activation = [] (WSMenuItem& item) {
             if (item.identifier() == 0) {
             if (item.identifier() == 0) {
                 int error;
                 int error;
-                Process::create_user_process("/bin/Terminal", 100, 100, current->pid(), error);
+                Process::create_user_process("/bin/Terminal", 100, 100, 0, error);
                 return;
                 return;
             }
             }
             if (item.identifier() == 4) {
             if (item.identifier() == 4) {
                 int error;
                 int error;
-                Process::create_user_process("/bin/About", 100, 100, current->pid(), error);
+                Process::create_user_process("/bin/About", 100, 100, 0, error);
                 return;
                 return;
             }
             }
             kprintf("WSMenu 1 item activated: '%s'\n", item.text().characters());
             kprintf("WSMenu 1 item activated: '%s'\n", item.text().characters());