mit-pdos / xv6-riscv

Xv6 for RISC-V
Other
6.63k stars 2.4k forks source link

Add acquire p->lock to safely reference p->killed. #86

Closed o8vm closed 1 year ago

o8vm commented 2 years ago

According to the comments in proc.h, I think p->lock is needed to reference p->killed, but is it not needed?

kaashoek commented 1 year ago

Thx.