https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85226
--- Comment #6 from f-rog at hotmail dot com --- Well my bad it's a bug that made it so i needed to wait at least around 20 ms before restarting the daemon. It's weird tho because i could press the button and get the log : Command executed : command and yet i'd need to wait like 1 second with the key pressed for it to actually do anything. If I released it was like it had never ran the actual thing. I still think somehow it's a system() related bug but I patched it.