From 974e23987ee9c225117665b38e562aa2cee9ae3f Mon Sep 17 00:00:00 2001 From: slinky55 Date: Mon, 20 Jul 2026 22:52:47 -0500 Subject: [PATCH] small fix --- kernel/syscall.c | 9 ++++----- run.sh | 4 ++++ 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100755 run.sh diff --git a/kernel/syscall.c b/kernel/syscall.c index a0771cc..c24803d 100644 --- a/kernel/syscall.c +++ b/kernel/syscall.c @@ -27,11 +27,10 @@ typedef struct registers { static int32_t sys_exit(int status) { process_t* task = current_task(); task->state = STATE_DEAD; - // task->exit_status = status; - // if (task->waiting) { - // wake(task->waiting); - // } - kprintf("task %d exited with status %d\n", task->pid, status); + task->exit_status = status; + if (task->waiting) { + wake(task->waiting); + } exit(); return 0; } diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..a4bb1be --- /dev/null +++ b/run.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +./build.sh +make run \ No newline at end of file