diff options
| author | Robert Morris <rtm@csail.mit.edu> | 2014-08-04 13:06:48 -0400 |
|---|---|---|
| committer | Robert Morris <rtm@csail.mit.edu> | 2014-08-04 13:06:48 -0400 |
| commit | 2c56547272e43b483d560a61692f1e24926a82fb (patch) | |
| tree | 514014c69ff9cfe2a67159b9a3f514a3a619aea6 /proc.c | |
| parent | 020c8e2384877ffc13579f633ac3c723f80baf8c (diff) | |
| download | xv6-labs-2022-2c56547272e43b483d560a61692f1e24926a82fb.tar.xz xv6-labs-2022-2c56547272e43b483d560a61692f1e24926a82fb.zip | |
every iput() and namei() must be inside a transaction
Diffstat (limited to 'proc.c')
| -rw-r--r-- | proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -186,7 +186,9 @@ exit(void) } } + begin_trans(); iput(proc->cwd); + commit_trans(); proc->cwd = 0; acquire(&ptable.lock); |
