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:
parent
dfdd977a82
commit
39890af833
4 changed files with 15 additions and 11 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue