From 155f63c4f6995acff2b9c7467cfd91d1f77f3272 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 2 Mar 2015 23:30:16 +0100 Subject: Implement process termination and cleaning up (not completely though) --- src/kernel/include/process.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/kernel/include') diff --git a/src/kernel/include/process.h b/src/kernel/include/process.h index 82f1b4d..1b4012f 100644 --- a/src/kernel/include/process.h +++ b/src/kernel/include/process.h @@ -52,6 +52,7 @@ typedef struct process { uint64_t last_ran; int pid; + int status, exit_code; struct process *parent; struct process *next_child; struct process *children; @@ -74,7 +75,7 @@ bool start_process(process_t *p, proc_entry_t entry); // maps a region for user void process_exit(process_t *p, int status, int exit_code); // exit current process bool process_new_thread(process_t *p, proc_entry_t entry, void* sp); -void process_thread_exited(thread_t *t); // called by threading code when a thread exits +void process_thread_deleted(thread_t *t); // called by threading code when a thread exits process_t *process_find_child(process_t *p, int pid); void process_get_status(process_t *p, proc_status_t *st); -- cgit v1.2.3