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.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c
index 9779478..b2a022f 100644
--- a/src/kernel/proc.c
+++ b/src/kernel/proc.c
@@ -196,11 +196,10 @@ void process_kill(struct process *proc, int ret) {
proc->controlled->potential_handlers--;
if (proc->controlled->potential_handlers == 0) {
// orphaned
- struct process *q = proc->controlled->queue;
+ struct vfs_request *q = proc->controlled->queue;
while (q) {
- assert(q->state == PS_WAITS4FS);
- struct process *q2 = q->waits4fs.queue_next;
- vfs_request_cancel(&q->waits4fs.req, ret);
+ struct vfs_request *q2 = q->queue_next;
+ vfs_request_cancel(q, ret);
q = q2;
}
}