[Lldb-commits] [PATCH] D13114: Check existence of SIGHUP before using it

Ying Chen via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 23 14:59:25 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL248434: Check existence of SIGHUP before using it (authored by chying).

Changed prior to commit:
  http://reviews.llvm.org/D13114?vs=35543&id=35557#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D13114

Files:
  lldb/trunk/test/dosep.py

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:]
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13114.35557.patch
Type: text/x-patch
Size: 754 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150923/0299e526/attachment.bin>


More information about the lldb-commits mailing list