aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/user/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/user/process.c')
-rw-r--r--src/kernel/user/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/user/process.c b/src/kernel/user/process.c
index 52f1031..00a7e44 100644
--- a/src/kernel/user/process.c
+++ b/src/kernel/user/process.c
@@ -244,7 +244,7 @@ void process_exit(process_t *p, int status, int exit_code) {
// notify parent
process_t *par = p->parent;
if (par->status == PS_RUNNING) {
- resume_on(par->children);
+ resume_on(&par->children);
resume_on(p);
}
@@ -408,7 +408,7 @@ void process_wait_any_child(process_t *par, proc_status_t *st, bool wait) {
{ int st = enter_critical(CL_NOSWITCH);
mutex_unlock(&par->lock);
- wait_ok = wait_on(par);
+ wait_ok = wait_on(&par->children);
exit_critical(st); }