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");
}