ref: 3c4e35fccfef7388cd680b13cca586a50811769c
parent: 5264b34f53d64bf342deca56a936d6d71f270dc7
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Tue Aug 23 02:11:16 EDT 2011
vgavesa: fix race
--- a/sys/src/9/pc/vgavesa.c
+++ b/sys/src/9/pc/vgavesa.c
@@ -265,6 +265,10 @@
{vesactl = Cdisable;
wakeup(&vesar);
+
+ /* wait for vesaproc to finish */
+ qlock(&vesaq);
+ qunlock(&vesaq);
}
static void
--
⑨