How to kill the process that locks the input devices?

In the project C++ use OIS to work with input devices, but for some reason when involved listener on the keyboard and the current application is active, not working keyboard shortcuts of the system, for example, when idle OIS Alt+F4 works, but the same commands do not respond.

All anything, if in debug mode when the application catch the error does not lock the keyboard and mouse, which I can't by any means kill the process, either through a graphical environment or using hotkey

UPDATE: will Supplement that blocks I / o while the application is running, but Alt-Tab allows you refocus to another window, but when debugging using GDB, even this cannot be done
July 9th 19 at 13:04
5 answers
July 9th 19 at 13:06
Solution
Ctrl+Alt+f1 is also blocked?
no, managed to kill the gdb process, but in this case, lost the logs of the debugger in the IDE console - adelia33 commented on July 9th 19 at 13:09
I don't know what IDE you use, but gdb is able to write its logs to a file you could try (never tried to kill gdb, so I don't know what happens there, but in theory the logs should be saved) - devin58 commented on July 9th 19 at 13:12
July 9th 19 at 13:08
The most stupid method
touch killthemall.sh
chmod +x killthemall.sh
echo "
#!/bin/bash
a = `ps -ax |grep listener`
for b in $a
do
kill -9 $b
done
"> killthemall.sh
and then push in crowns
crontab-e
*/1 * * * * /path/killthemall.sh
the script will runs every minute to check.
You can sit and finished to add to the startup rc.d to do a while loop with a sleep 1 and then he will be at boot monitor runs and to kill the process.

But this fire-fighting. Understand where the Shoe pinches.
July 9th 19 at 13:10
remove/insert the keyboard does not work?
no - adelia33 commented on July 9th 19 at 13:13
July 9th 19 at 13:12
ps-ax | grep "process name"
kill "processID"
?
Claudia does not work writes how to enter ? - adelia33 commented on July 9th 19 at 13:15
: well, as I understand the question - do not work hotkeys, and on-screen keyboard has not been canceled. - devin58 commented on July 9th 19 at 13:18
: does not give even the mouse moved outside the game window, even Alt+Tab does not work - adelia33 commented on July 9th 19 at 13:21
July 9th 19 at 13:14
maybe a script to kill?
hmm.. but how to run it? - adelia33 commented on July 9th 19 at 13:17

Find more questions by tags Ubuntu