[Lldb-commits] [PATCH] D69148: Disable exit-on-SIGPIPE in lldb

Vedant Kumar via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 17 16:31:00 PDT 2019


vsk planned changes to this revision.
vsk marked an inline comment as done.
vsk added inline comments.


================
Comment at: lldb/tools/driver/Driver.cpp:864
+  // in LLDB leaves behind temporary objects).
+  llvm::sys::SetExitOnFailedPipeWrite(/*ExitOnFailedWrite=*/false);
+
----------------
jfb wrote:
> Could this instead pass a lambda, like other signal handlers? So sigpipe would call any user-specified lambda, and by default would instead call exit.
Ah, sure. That would make things a bit more customizable.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69148/new/

https://reviews.llvm.org/D69148





More information about the lldb-commits mailing list