Make test_sighup robust against a parent process ignoring SIGHUP

Fedora build machines call signal.signal(signal.SIGHUP, signal.SIG_IGN)
as part of daemonizing, but this test needs the child process to use the
default signal handler.