mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18:11 +00:00
Kernel: fork()ed children should inherit pledge promises :^)
Update various places that now need wider promises as they are not reset by fork() anymore.
This commit is contained in:
parent
b39e732eb3
commit
f187374c1b
5 changed files with 9 additions and 7 deletions
|
@ -599,6 +599,8 @@ pid_t Process::sys$fork(RegisterDump& regs)
|
|||
Thread* child_first_thread = nullptr;
|
||||
auto* child = new Process(child_first_thread, m_name, m_uid, m_gid, m_pid, m_ring, m_cwd, m_executable, m_tty, this);
|
||||
child->m_root_directory = m_root_directory;
|
||||
child->m_promises = m_promises;
|
||||
child->m_execpromises = m_execpromises;
|
||||
|
||||
#ifdef FORK_DEBUG
|
||||
dbgprintf("fork: child=%p\n", child);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue