small fix

This commit is contained in:
2026-07-20 22:52:47 -05:00
parent 256346534a
commit 974e23987e
2 changed files with 8 additions and 5 deletions

View File

@@ -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;
} }

4
run.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
./build.sh
make run