1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:48:11 +00:00

Kernel: Move process "dumpable" flag into protected data

This commit is contained in:
Andreas Kling 2021-03-10 22:42:07 +01:00
parent 3d27269f13
commit 37ad880660
2 changed files with 10 additions and 4 deletions

View file

@ -725,4 +725,11 @@ bool Process::add_thread(Thread& thread)
return is_first;
}
void Process::set_dumpable(bool dumpable)
{
if (dumpable == protected_data().dumpable)
return;
MutableProtectedData(*this)->dumpable = dumpable;
}
}