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

Kernel: Don't dump core when OOM-killing a process

Trying to generate a core dump under low memory conditions is not the
best idea.

Fixes #4428.
This commit is contained in:
Andreas Kling 2020-12-18 11:22:21 +01:00
parent 18f1f4e1a2
commit 4232874270

View file

@ -470,7 +470,7 @@ void Process::crash(int signal, u32 eip, bool out_of_memory)
dump_backtrace();
}
m_termination_signal = signal;
set_dump_core(true);
set_dump_core(!out_of_memory);
dump_regions();
ASSERT(is_user_process());
die();