Index: lldb/trunk/test/dosep.py =================================================================== --- lldb/trunk/test/dosep.py +++ lldb/trunk/test/dosep.py @@ -285,7 +285,8 @@ # Shut off interrupt handling in the child process. signal.signal(signal.SIGINT, signal.SIG_IGN) - signal.signal(signal.SIGHUP, signal.SIG_IGN) + if hasattr(signal, 'SIGHUP'): + signal.signal(signal.SIGHUP, signal.SIG_IGN) # Setup the global state for the worker process. setup_global_variables( @@ -1268,7 +1269,8 @@ """ # Do not shut down on sighup. - signal.signal(signal.SIGHUP, signal.SIG_IGN) + if hasattr(signal, 'SIGHUP'): + signal.signal(signal.SIGHUP, signal.SIG_IGN) dotest_argv = sys.argv[1:]