summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/proc.c b/proc.c
index e19539c..db0e9c7 100644
--- a/proc.c
+++ b/proc.c
@@ -186,7 +186,9 @@ exit(void)
}
}
+ begin_trans();
iput(proc->cwd);
+ commit_trans();
proc->cwd = 0;
acquire(&ptable.lock);