small fix
This commit is contained in:
@@ -27,11 +27,10 @@ typedef struct registers {
|
|||||||
static int32_t sys_exit(int status) {
|
static int32_t sys_exit(int status) {
|
||||||
process_t* task = current_task();
|
process_t* task = current_task();
|
||||||
task->state = STATE_DEAD;
|
task->state = STATE_DEAD;
|
||||||
// task->exit_status = status;
|
task->exit_status = status;
|
||||||
// if (task->waiting) {
|
if (task->waiting) {
|
||||||
// wake(task->waiting);
|
wake(task->waiting);
|
||||||
// }
|
}
|
||||||
kprintf("task %d exited with status %d\n", task->pid, status);
|
|
||||||
exit();
|
exit();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user