Delay the execution of a programm with signals