[Lldb-commits] [lldb] r248434 - Check existence of SIGHUP before using it
Ying Chen via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 23 14:53:18 PDT 2015
Author: chying
Date: Wed Sep 23 16:53:18 2015
New Revision: 248434
URL: http://llvm.org/viewvc/llvm-project?rev=248434&view=rev
Log:
Check existence of SIGHUP before using it
Summary: -SIGHUP doesn't exist on Windows
Reviewers: tfiala
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D13114
Modified:
lldb/trunk/test/dosep.py
Modified: lldb/trunk/test/dosep.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dosep.py?rev=248434&r1=248433&r2=248434&view=diff
==============================================================================
--- lldb/trunk/test/dosep.py (original)
+++ lldb/trunk/test/dosep.py Wed Sep 23 16:53:18 2015
@@ -285,7 +285,8 @@ def process_dir_worker_multiprocessing(
# 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 @@ def main(print_details_on_success, num_t
"""
# 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:]
More information about the lldb-commits
mailing list