make the mainloop immune against the signals

... needed at least for gdb ...

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 file changed