kbdfs: wakeup and flush when /dev/kbd gets closed
This commit is contained in:
parent
ac5c58e7a4
commit
0fda678227
1 changed files with 2 additions and 1 deletions
|
@ -1156,7 +1156,8 @@ fsdestroyfid(Fid *f)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case Qkbd:
|
case Qkbd:
|
||||||
kbdopen--;
|
if(--kbdopen == 0)
|
||||||
|
sendul(ctlchan, Kbdflush);
|
||||||
break;
|
break;
|
||||||
case Qcons:
|
case Qcons:
|
||||||
consopen--;
|
consopen--;
|
||||||
|
|
Loading…
Reference in a new issue