mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09:00
Kernel: Pass full path of output coredump file to CoreDump
This commit is contained in:
parent
dfdd977a82
commit
39890af833
Notes:
sideshowbarker
2024-07-19 00:50:35 +09:00
Author: https://github.com/itamar8910
Commit: 39890af833
Pull-request: https://github.com/SerenityOS/serenity/pull/3738
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
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