diff options
| author | Todd Fiala <tfiala@google.com> | 2014-01-23 17:07:54 +0000 |
|---|---|---|
| committer | Todd Fiala <tfiala@google.com> | 2014-01-23 17:07:54 +0000 |
| commit | 571768caa6a6146683f20afc847e8cb58b6da7e5 (patch) | |
| tree | 4625dddb1a06d0dbca14c689fa79da13dfe9c090 | |
| parent | 17b91897e91d088d19ff7a8fff9b92e6cdefccef (diff) | |
| download | bcm5719-llvm-571768caa6a6146683f20afc847e8cb58b6da7e5.tar.gz bcm5719-llvm-571768caa6a6146683f20afc847e8cb58b6da7e5.zip | |
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.
llvm-svn: 199908
| -rw-r--r-- | lldb/source/Host/common/Host.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp index 9302fa1ddc0..62e4ee9b486 100644 --- a/lldb/source/Host/common/Host.cpp +++ b/lldb/source/Host/common/Host.cpp @@ -1728,7 +1728,7 @@ Host::LaunchProcessPosixSpawn (const char *exe_path, ProcessLaunchInfo &launch_i 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); |

