aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/user/process.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-13 16:16:43 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-13 16:16:43 +0100
commit5bc7fcc00507bbc5ff5bf957a1589209f8495534 (patch)
treef18969c395f6e74e0f299948e376abbe74577f68 /src/kernel/user/process.c
parent41a4f5309ef298da764bf1dca1254e734a4417f0 (diff)
downloadkogata-5bc7fcc00507bbc5ff5bf957a1589209f8495534.tar.gz
kogata-5bc7fcc00507bbc5ff5bf957a1589209f8495534.zip
Shell begins to be usefull.
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); }