diff options
| author | Kuba Brecka <kuba.brecka@gmail.com> | 2016-04-11 09:27:09 +0000 |
|---|---|---|
| committer | Kuba Brecka <kuba.brecka@gmail.com> | 2016-04-11 09:27:09 +0000 |
| commit | 036d0600448d6137300eb0bfcbf99a24e8632204 (patch) | |
| tree | 86aa5cebcbfd170e26c98d4cb76d5a1bd49d5553 /llvm/lib/Support/COM.cpp | |
| parent | 716a533a7f47c63cc2f30ce5bdf70958d81dff46 (diff) | |
| download | bcm5719-llvm-036d0600448d6137300eb0bfcbf99a24e8632204.tar.gz bcm5719-llvm-036d0600448d6137300eb0bfcbf99a24e8632204.zip | |
[sanitizer] Restore stderr when using forkpty() to spawn external symbolizer
In `AtosSymbolizer`, we're using `forkpty()` to create a new pseudo-terminal to communicate with the `atos` tool (we need that to avoid output buffering in interactive mode). This however redirects both stdout and stderr into a single stream, so when we read the output, we can't distinguish between errors and standard replies. Let's save&restore stderr to avoid that.
Differential Revision: http://reviews.llvm.org/D15073
llvm-svn: 265923
Diffstat (limited to 'llvm/lib/Support/COM.cpp')
0 files changed, 0 insertions, 0 deletions

