kbdfs: wakeup and flush when /dev/kbd gets closed

cinap_lenrek 2011-06-06 03:20:41 +00:00
parent ac5c58e7a4
commit 0fda678227
1 changed files with 2 additions and 1 deletions

View File

@ -1156,7 +1156,8 @@ fsdestroyfid(Fid *f)
}
break;
case Qkbd:
kbdopen--;
if(--kbdopen == 0)
sendul(ctlchan, Kbdflush);
break;
case Qcons:
consopen--;