Use a pipe to send command from the event loop to the reading thread instead of using signals

This way we'll be able to send various commands (254 for the moment)

(we might need to improve the system which just send a char right now)