close input dev after feeding

This commit is contained in:
chrox
2013-03-17 19:50:37 +08:00
parent 819467df0b
commit 6cbb4ed6b4

View File

@@ -288,6 +288,8 @@ static int fakeTapInput(lua_State *L) {
ev.value = 0;
write(inputfd, &ev, sizeof(ev));
}
ioctl(inputfd, EVIOCGRAB, 0);
close(inputfd);
return 0;
#else
return 0;