aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include/process.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/include/process.h')
-rw-r--r--src/kernel/include/process.h3
1 files changed, 2 insertions, 1 deletions
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);