1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

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

This regressed at some point recently. All children were non-dumpable
until manually opting into it.
This commit is contained in:
Andreas Kling 2021-03-11 14:34:53 +01:00
parent 1608ef37d8
commit 49a0f40ff0

View file

@ -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);