diff options
Diffstat (limited to 'Private/Source/ProcessScheduler.cxx')
| -rw-r--r-- | Private/Source/ProcessScheduler.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Private/Source/ProcessScheduler.cxx b/Private/Source/ProcessScheduler.cxx index 5ac253cb..22222f9e 100644 --- a/Private/Source/ProcessScheduler.cxx +++ b/Private/Source/ProcessScheduler.cxx @@ -33,12 +33,18 @@ STATIC Int32 kLastExitCode = 0U; const Int32 &rt_get_exit_code() noexcept { return kLastExitCode; } /***********************************************************************************/ +/// @brief crash current process. +/***********************************************************************************/ void ProcessHeader::Crash() { - kcout << "ProcessScheduler: Crashed, ExitCode: -1.\r"; - MUST_PASS(ke_bug_check()); + kcout << this->Name << ": crashed. (id = " << number(39); + kcout << ")\r"; + + if (this->Ring != kRingUserKind) { + MUST_PASS(ke_bug_check()); + } - this->Exit(-1); + this->Exit(kErrorProcessFault); } void ProcessHeader::Wake(const bool should_wakeup) { |
