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:
parent
18f1f4e1a2
commit
4232874270
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue