mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
Kernel: Move Process's process group pointer into protected data
Now that it's no longer using LockRefPtr, we can actually move it into protected data. (LockRefPtr couldn't be stored there because protected data is immutable at times, and LockRefPtr uses some of its own bits for locking.)
This commit is contained in:
parent
1c77803845
commit
1e2ef59965
3 changed files with 7 additions and 11 deletions
|
@ -97,10 +97,6 @@ ErrorOr<FlatPtr> Process::sys$fork(RegisterState& regs)
|
|||
});
|
||||
}));
|
||||
|
||||
child->m_pg.with([&](auto& child_pg) {
|
||||
child_pg = m_pg.with([&](auto& pg) { return pg; });
|
||||
});
|
||||
|
||||
with_protected_data([&](auto& my_protected_data) {
|
||||
child->with_mutable_protected_data([&](auto& child_protected_data) {
|
||||
child_protected_data.promises = my_protected_data.promises.load();
|
||||
|
@ -112,6 +108,7 @@ ErrorOr<FlatPtr> Process::sys$fork(RegisterState& regs)
|
|||
child_protected_data.umask = my_protected_data.umask;
|
||||
child_protected_data.signal_trampoline = my_protected_data.signal_trampoline;
|
||||
child_protected_data.dumpable = my_protected_data.dumpable;
|
||||
child_protected_data.process_group = my_protected_data.process_group;
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue