[Lldb-commits] [lldb] r199908 - Candidate fix for bug 18592.

Todd Fiala tfiala at google.com
Thu Jan 23 09:07:55 PST 2014


Author: tfiala
Date: Thu Jan 23 11:07:54 2014
New Revision: 199908

URL: http://llvm.org/viewvc/llvm-project?rev=199908&view=rev
Log:
Candidate fix for bug 18592.

This reverts Host.cpp LaunchProcess spawn behavior on FreeBSD to be
like Linux (and unlike OS X) with regards to how default signal
handlers and setup on the spawned process. FreeBSD does not reset
default signal handlers on the spawned process after this change.

Modified:
    lldb/trunk/source/Host/common/Host.cpp

Modified: lldb/trunk/source/Host/common/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Host.cpp?rev=199908&r1=199907&r2=199908&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Host.cpp (original)
+++ lldb/trunk/source/Host/common/Host.cpp Thu Jan 23 11:07:54 2014
@@ -1728,7 +1728,7 @@ Host::LaunchProcessPosixSpawn (const cha
     sigemptyset (&no_signals);
     sigfillset (&all_signals);
     ::posix_spawnattr_setsigmask(&attr, &no_signals);
-#if defined (__linux__)
+#if defined (__linux__)  || defined (__FreeBSD__)
     ::posix_spawnattr_setsigdefault(&attr, &no_signals);
 #else
     ::posix_spawnattr_setsigdefault(&attr, &all_signals);





More information about the lldb-commits mailing list