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

Kernel: Pass full path of output coredump file to CoreDump

This commit is contained in:
Itamar 2020-11-13 22:38:58 +02:00 committed by Andreas Kling
parent dfdd977a82
commit 39890af833
4 changed files with 15 additions and 11 deletions

View file

@ -589,7 +589,9 @@ void Process::finalize()
if (m_should_dump_core) {
dbgln("Generating coredump for pid: {}", m_pid.value());
auto coredump = CoreDump::create(*this);
auto coredump_path = String::format("/tmp/coredump/%s_%u", name().characters(), RTC::now());
auto coredump = CoreDump::create(*this, LexicalPath { coredump_path });
if (!coredump) {
dbgln("Could not create coredump");
}