diff options
| author | Vedant Kumar <vsk@apple.com> | 2019-10-24 12:08:24 -0700 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2019-10-24 13:19:49 -0700 |
| commit | d0bd3fc88be54c4e11f49cfa31e427700bb1e9af (patch) | |
| tree | ef4c379867706eb435d84356414aae10984a5fd3 /lldb/tools/driver | |
| parent | 23b78364150cd946a8b111e87defdf179eecbc8f (diff) | |
| download | bcm5719-llvm-d0bd3fc88be54c4e11f49cfa31e427700bb1e9af.tar.gz bcm5719-llvm-d0bd3fc88be54c4e11f49cfa31e427700bb1e9af.zip | |
Revert "Disable exit-on-SIGPIPE in lldb"
This reverts commit 32ce14e55e5a99dd99c3b4fd4bd0ccaaf2948c30.
In post-commit review, Pavel pointed out that there's a simpler way to
ignore SIGPIPE in lldb that doesn't rely on llvm's handlers.
Diffstat (limited to 'lldb/tools/driver')
| -rw-r--r-- | lldb/tools/driver/Driver.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lldb/tools/driver/Driver.cpp b/lldb/tools/driver/Driver.cpp index 6ab2bd93659..4a403a7ffb4 100644 --- a/lldb/tools/driver/Driver.cpp +++ b/lldb/tools/driver/Driver.cpp @@ -853,16 +853,6 @@ int main(int argc, char const *argv[]) signal(SIGCONT, sigcont_handler); #endif - // Occasionally, during test teardown, LLDB writes to a closed pipe. - // Sometimes the communication is inherently unreliable, so LLDB tries to - // avoid being killed due to SIGPIPE. However, LLVM's default SIGPIPE behavior - // is to exit with IO_ERR. Opt LLDB out of that. - // - // We don't disable LLVM's signal handling entirely because we still want - // pretty stack traces, and file cleanup (for when, say, the clang embedded - // in LLDB leaves behind temporary objects). - llvm::sys::SetPipeSignalFunction(nullptr); - int exit_code = 0; // Create a scope for driver so that the driver object will destroy itself // before SBDebugger::Terminate() is called. |

