summaryrefslogtreecommitdiff
path: root/src/kernel/proc.c
diff options
context:
space:
mode:
authordzwdz2022-07-07 20:29:13 +0200
committerdzwdz2022-07-07 20:29:13 +0200
commite567ebeee5ea196128f15adcf30cec5dd1137f90 (patch)
tree1226f0376dbe25fd6d86524f01e6848812aee0ae /src/kernel/proc.c
parentbbdacaddcc25d1d137a0bb0781eba603641baa92 (diff)
kernel: add the vfsreq_finish_short shorthand function
Diffstat (limited to 'src/kernel/proc.c')
-rw-r--r--src/kernel/proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/proc.c b/src/kernel/proc.c
index 331e019..b9eb48e 100644
--- a/src/kernel/proc.c
+++ b/src/kernel/proc.c
@@ -86,7 +86,7 @@ struct process *process_fork(struct process *parent, int flags) {
void process_kill(struct process *p, int ret) {
if (p->state != PS_DEAD) {
if (p->handled_req) {
- vfsreq_finish(p->handled_req, -1, 0, NULL);
+ vfsreq_finish_short(p->handled_req, -1);
p->handled_req = NULL;
}
@@ -99,7 +99,7 @@ void process_kill(struct process *p, int ret) {
struct vfs_request *q = p->controlled->queue;
while (q) {
struct vfs_request *q2 = q->queue_next;
- vfsreq_finish(q, -1, 0, NULL);
+ vfsreq_finish_short(q, -1);
q = q2;
}
p->controlled->queue = NULL;