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; break;
case Qkbd: case Qkbd:
kbdopen--; if(--kbdopen == 0)
sendul(ctlchan, Kbdflush);
break; break;
case Qcons: case Qcons:
consopen--; consopen--;