diff options
author | qwx <qwx@sciops.net> | 2022-08-18 05:33:31 +0000 |
---|---|---|
committer | qwx <qwx@sciops.net> | 2022-08-18 05:33:31 +0000 |
commit | e7d03d19100fe3180906c8ce3f2cab3ba9387fe8 (patch) | |
tree | eca8dc5f945c65ba01370a1783c927c3c0670dcb /sys/src/9/pc/vga.c | |
parent | 218d21f3b5743ddaddb7252b7088946a62b49244 (diff) |
devvga: fix race condition between writes to vgactl
to reproduce:
for(i in `{seq 10}) echo softscreen off >/dev/vgactl
Diffstat (limited to 'sys/src/9/pc/vga.c')
-rw-r--r-- | sys/src/9/pc/vga.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/src/9/pc/vga.c b/sys/src/9/pc/vga.c index 90682cd96..2150728f9 100644 --- a/sys/src/9/pc/vga.c +++ b/sys/src/9/pc/vga.c @@ -183,8 +183,6 @@ vgascreenwin(VGAscr* scr) Point p; int h; - qlock(&drawlock); - h = scr->memdefont->height; r = scr->gscreen->r; @@ -215,11 +213,7 @@ vgascreenwin(VGAscr* scr) curpos = window.min; flushmemscreen(r); - - qunlock(&drawlock); - vgascreenputs(kmesg.buf, kmesg.n); - screenputs = vgascreenputs; } |