Use signal() to register interrupt then wakeup program