mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:57:35 +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();
|
dump_backtrace();
|
||||||
}
|
}
|
||||||
m_termination_signal = signal;
|
m_termination_signal = signal;
|
||||||
set_dump_core(true);
|
set_dump_core(!out_of_memory);
|
||||||
dump_regions();
|
dump_regions();
|
||||||
ASSERT(is_user_process());
|
ASSERT(is_user_process());
|
||||||
die();
|
die();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue