mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 09:07:44 +00:00
Kernel: Move process umask into protected data :^)
This commit is contained in:
parent
90c0f9664e
commit
08e0e2eb41
3 changed files with 4 additions and 5 deletions
|
@ -32,6 +32,7 @@ KResultOr<mode_t> Process::sys$umask(mode_t mask)
|
|||
{
|
||||
REQUIRE_PROMISE(stdio);
|
||||
auto old_mask = m_umask;
|
||||
ProtectedDataMutationScope scope { *this };
|
||||
m_umask = mask & 0777;
|
||||
return old_mask;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue