Mercurial > hg > Members > shivanidubey > xv6
changeset 27:da1d64f7b225 default tip
fix
author | kono |
---|---|
date | Thu, 07 Jul 2022 17:47:52 +0900 |
parents | 3cb887a6b2ca |
children | |
files | src/sysproc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sysproc.c Thu Jul 07 17:03:43 2022 +0900 +++ b/src/sysproc.c Thu Jul 07 17:47:52 2022 +0900 @@ -68,13 +68,13 @@ acquire(&tickslock); ticks0 = ticks; + uint *ticks1 = (uint *)&ticks; while(ticks - ticks0 < n){ if(proc->killed){ release(&tickslock); return -1; } - uint *ticks1 = (uint *)ticks; sleep(ticks1, &tickslock); }