Change signal handler to sigaction

Signed-off-by: Jeff Horn <jhorn@reachtech.com>