瀏覽代碼

Kernel: Inherit the dumpable flag on sys$fork()

This regressed at some point recently. All children were non-dumpable
until manually opting into it.
Andreas Kling 4 年之前
父節點
當前提交
49a0f40ff0
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Kernel/Syscalls/fork.cpp

+ 1 - 0
Kernel/Syscalls/fork.cpp

@@ -56,6 +56,7 @@ KResultOr<pid_t> Process::sys$fork(RegisterState& regs)
         child->m_extra_gids = m_extra_gids;
         child->m_umask = m_umask;
         child->m_signal_trampoline = m_signal_trampoline;
+        child->m_dumpable = m_dumpable;
     }
 
     dbgln_if(FORK_DEBUG, "fork: child={}", child);