1

select() isn't responding to writing on /dev/input/mice

view story
linux-howto

http://unix.stackexchange.com – I am writing a program which monitors through select() on the keyboard and mouse device files. It waits for any write operation (this should happen when there is a keystroke or mouse movement) on those files and as soon as there is a write operation, some jobs are executed. But it's not working. My code is given below. #include<stdio.h> #include<string.h> #include<sys/types.h> #include<sys/stat.h> #include<fcntl.h> #include<linux/input.h> #include<linux/uinput.h> #include<sys/time.h> #include<unistd.h> void main() { int mouse_fd,kbd_ (HowTos)