diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-11 00:19:17 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-11 12:34:55 +0200 |
commit | 5e27861c2e10ab164ac084c678cc11cfa00340a6 (patch) | |
tree | 700a1105e9389ef10ee0ead1bfb2afdb75e060ee /Kernel/Process.cpp | |
parent | 9964c106ad5d240b388badc8bb785ba63a3d6496 (diff) | |
download | serenity-5e27861c2e10ab164ac084c678cc11cfa00340a6.zip |
Kernel: Don't ask RTC for current time when generating coredumps
Use kgettimeofday() like everybody else. :^)
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r-- | Kernel/Process.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index ccf5548094..26cd0c4955 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -30,7 +30,6 @@ #include <Kernel/PerformanceManager.h> #include <Kernel/Process.h> #include <Kernel/ProcessExposed.h> -#include <Kernel/RTC.h> #include <Kernel/Sections.h> #include <Kernel/StdLib.h> #include <Kernel/TTY/TTY.h> @@ -522,7 +521,7 @@ bool Process::dump_core() VERIFY(is_dumpable()); VERIFY(should_core_dump()); dbgln("Generating coredump for pid: {}", pid().value()); - auto coredump_path = String::formatted("/tmp/coredump/{}_{}_{}", name(), pid().value(), RTC::now()); + auto coredump_path = String::formatted("/tmp/coredump/{}_{}_{}", name(), pid().value(), kgettimeofday().to_truncated_seconds()); auto coredump = CoreDump::create(*this, coredump_path); if (!coredump) return false; |