Add a check which prevents trapping of SIGHUP if the system is not POSIX-based.