set up the timer in init
Set up the timer
added a sigaction to deal with timer alarm
restart the timer when the timer is up, however
do not interrupt the handler or do any sigactions during the handler