SIGHUP handling prototype