mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
Kernel: Oops, SC_abort was actually calling sys$exit_thread()
This commit is contained in:
parent
4d006de2b9
commit
14aa8e3708
Notes:
sideshowbarker
2024-07-18 21:48:39 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/14aa8e3708a
|
@ -102,11 +102,19 @@ KResultOr<FlatPtr> handle(RegisterState& regs, FlatPtr function, FlatPtr arg1, F
|
|||
process.tracer_trap(*current_thread, regs); // this triggers SIGTRAP and stops the thread!
|
||||
}
|
||||
|
||||
if (function == SC_exit)
|
||||
switch (function) {
|
||||
case SC_abort:
|
||||
process.sys$abort();
|
||||
break;
|
||||
case SC_exit:
|
||||
process.sys$exit(arg1);
|
||||
else
|
||||
break;
|
||||
case SC_exit_thread:
|
||||
process.sys$exit_thread(arg1);
|
||||
VERIFY_NOT_REACHED();
|
||||
break;
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
}
|
||||
|
||||
if (function == SC_fork || function == SC_sigreturn) {
|
||||
|
|
Loading…
Reference in a new issue