I get something like:
# Quiero que se ejecute un daemon hasta que se pulse control + c
trap 'handle_exit 0' SIGINT
# El ciclo solo es para esperar que pulsen ctrl + c
while true
do
sleep 1000000
done
Now, I want to know if there is a cleaner way to do that loop.
Just make it run forever by running a non-action: