mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
Kernel: Make pledge serialization in /proc/all generation OOM-fallible
This commit is contained in:
parent
e23d320bb9
commit
dab73d6d23
1 changed files with 3 additions and 4 deletions
|
@ -459,10 +459,9 @@ private:
|
|||
if (process.is_user_process()) {
|
||||
StringBuilder pledge_builder;
|
||||
|
||||
#define __ENUMERATE_PLEDGE_PROMISE(promise) \
|
||||
if (process.has_promised(Pledge::promise)) { \
|
||||
pledge_builder.append(#promise " "); \
|
||||
}
|
||||
#define __ENUMERATE_PLEDGE_PROMISE(promise) \
|
||||
if (process.has_promised(Pledge::promise)) \
|
||||
TRY(pledge_builder.try_append(#promise " "));
|
||||
ENUMERATE_PLEDGE_PROMISES
|
||||
#undef __ENUMERATE_PLEDGE_PROMISE
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue