From 5bc7fcc00507bbc5ff5bf957a1589209f8495534 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 13 Mar 2015 16:16:43 +0100 Subject: Shell begins to be usefull. --- src/kernel/user/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/user') 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); } -- cgit v1.2.3