We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfe8a3a commit fe1ec2bCopy full SHA for fe1ec2b
src/aero_kernel/src/syscall/process.rs
@@ -44,14 +44,13 @@ pub fn exit(status: usize) -> Result<usize, SyscallError> {
44
45
#[cfg(not(feature = "ci"))]
46
{
47
- log::trace!(
48
- "exiting the process (pid={pid}) with status: {status}",
49
- pid = scheduler::get_scheduler().current_task().pid().as_usize(),
50
- status = status
51
- );
+ let current_task = scheduler::get_scheduler().current_task();
+ let pid = current_task.pid().as_usize();
+ let path = current_task.path();
52
53
- crate::unwind::unwind_stack_trace();
+ log::trace!("exiting the process (pid={pid}, path={path:?}) with status: {status}");
54
+ crate::unwind::unwind_stack_trace();
55
scheduler::get_scheduler().exit(status as isize);
56
}
57
0 commit comments