mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
Kernel: Stop using *LockRefPtr for TTY
TTY was only stored in Process::m_tty, so make that a SpinlockProtected.
This commit is contained in:
parent
350e5f9261
commit
1c77803845
6 changed files with 35 additions and 20 deletions
|
@ -39,7 +39,7 @@ ErrorOr<FlatPtr> Process::sys$setsid()
|
|||
|
||||
auto process_group = TRY(ProcessGroup::create(ProcessGroupID(pid().value())));
|
||||
m_pg.with([&](auto& pg) { pg = move(process_group); });
|
||||
m_tty = nullptr;
|
||||
m_tty.with([](auto& tty) { tty = nullptr; });
|
||||
return with_mutable_protected_data([&](auto& protected_data) -> ErrorOr<FlatPtr> {
|
||||
protected_data.sid = pid().value();
|
||||
return protected_data.sid.value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue