reading keyboard
by rac8006 from LinuxQuestions.org on (#58574)
I have a program that opens and read a character from the keyboard. If the keyboard is connected to a KVM when the keyboard switches to the another PC. My program get an error no device. So I can close the file. But what is the best way to determine that the keyboard has returned.
Do I loop trying to open the device? Is ther a way to determine that the keyboard is back?
Thanks


Do I loop trying to open the device? Is ther a way to determine that the keyboard is back?
Thanks