Kernel: Don't dump backtrace on successful exits

This was getting really annoying.
This commit is contained in:
Sergey Bugaev 2020-01-12 18:27:24 +03:00 committed by Andreas Kling
parent 198cd77307
commit 35b0f10f20
Notes: sideshowbarker 2024-07-19 10:07:42 +09:00

View file

@ -1130,7 +1130,8 @@ void Process::sys$exit(int status)
kprintf("sys$exit: %s(%u) exit with status %d\n", name().characters(), pid(), status);
#endif
dump_backtrace();
if (status != 0)
dump_backtrace();
m_termination_status = status;
m_termination_signal = 0;