mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 08:18:12 +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
|
@ -65,7 +65,10 @@ ErrorOr<void> SysFSOverallProcesses::try_generate(KBufferBuilder& builder)
|
|||
}
|
||||
|
||||
TRY(process_object.add("pid"sv, process.pid().value()));
|
||||
TRY(process_object.add("pgid"sv, process.tty() ? process.tty()->pgid().value() : 0));
|
||||
ProcessGroupID tty_pgid = 0;
|
||||
if (auto tty = process.tty())
|
||||
tty_pgid = tty->pgid();
|
||||
TRY(process_object.add("pgid"sv, tty_pgid.value()));
|
||||
TRY(process_object.add("pgp"sv, process.pgid().value()));
|
||||
TRY(process_object.add("sid"sv, process.sid().value()));
|
||||
auto credentials = process.credentials();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue