summaryrefslogtreecommitdiff
path: root/src/kernel/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r--src/kernel/proc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c
index 9a9a84f..61c1dad 100644
--- a/src/kernel/proc.c
+++ b/src/kernel/proc.c
@@ -86,8 +86,9 @@ Proc *proc_fork(Proc *parent, int flags) {
if ((flags & FORK_NEWFS) == 0 && parent->controlled) {
child->controlled = parent->controlled;
- assert(child->controlled->provhcnt);
- child->controlled->provhcnt++;
+ assert(child->controlled->is_user);
+ assert(child->controlled->user.provhcnt);
+ child->controlled->user.provhcnt++;
}
child->mount = parent->mount;
@@ -211,8 +212,7 @@ static bool unref(uint64_t *refcount) {
void proc_kill(Proc *p, int ret) {
if (proc_alive(p)) {
if (p->controlled) {
- // TODO vfs_backend_user_handlerdown
- assert(p->controlled->provhcnt > 0);
+ assert(p->controlled->is_user);
if (p->controlled->user.handler == p) {
assert(p->state == PS_WAITS4REQUEST);
p->controlled->user.handler = NULL;