mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:47:35 +00:00
Kernel: Stop using *LockRefPtr for ProcessGroup
Had to wrap Process::m_pg in a SpinlockProtected for this to be safe.
This commit is contained in:
parent
ed1253ab90
commit
83b409083b
9 changed files with 31 additions and 23 deletions
|
@ -96,7 +96,9 @@ ErrorOr<FlatPtr> Process::sys$fork(RegisterState& regs)
|
|||
});
|
||||
}));
|
||||
|
||||
child->m_pg = m_pg;
|
||||
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue