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

This commit is contained in:
cinap_lenrek 2011-06-06 03:20:41 +00:00
parent ac5c58e7a4
commit 0fda678227

View file

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