diff options
| author | Frans Kaashoek <kaashoek@mit.edu> | 2022-08-23 11:01:06 -0400 |
|---|---|---|
| committer | Frans Kaashoek <kaashoek@mit.edu> | 2022-08-23 11:01:06 -0400 |
| commit | ccb7bd14c7303a77f8f99928e2297ddd815674b1 (patch) | |
| tree | ac9fc9f6773c87d5adc8ded3bc8bc3a0145e85cd /kernel/console.c | |
| parent | 4cd4d194b8827af4971a81ad28968499925f884f (diff) | |
| parent | 8621be8f3d105cd73ffbc681f9810d04b083b0ae (diff) | |
| download | xv6-labs-2022-ccb7bd14c7303a77f8f99928e2297ddd815674b1.tar.xz xv6-labs-2022-ccb7bd14c7303a77f8f99928e2297ddd815674b1.zip | |
Merge branch 'riscv' into uvm-perm
Diffstat (limited to 'kernel/console.c')
| -rw-r--r-- | kernel/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/console.c b/kernel/console.c index 39415d6..05dc526 100644 --- a/kernel/console.c +++ b/kernel/console.c @@ -89,7 +89,7 @@ consoleread(int user_dst, uint64 dst, int n) // wait until interrupt handler has put some // input into cons.buffer. while(cons.r == cons.w){ - if(myproc()->killed){ + if(killed(myproc())){ release(&cons.lock); return -1; } |
