diff options
| author | Paul Eggert | 2017-05-16 14:30:37 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-05-16 14:31:49 -0700 |
| commit | 69d0a8500cabc4c034e2d6d873af54a8e8362e3b (patch) | |
| tree | 9db77db408a4c34ff16c8c6f9a4eed253d6e3a2f /src | |
| parent | be9e60fc3c43cc49cc5d749924c3e96737ae297c (diff) | |
| download | emacs-69d0a8500cabc4c034e2d6d873af54a8e8362e3b.tar.gz emacs-69d0a8500cabc4c034e2d6d873af54a8e8362e3b.zip | |
Do not discard AddressSanitizer stderr
* src/emacs.c (close_output_streams) [ADDRESS_SANITIZER]:
Do not close stderr.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/emacs.c b/src/emacs.c index 9339d60866c..3aa914f22fa 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -657,8 +657,11 @@ close_output_streams (void) | |||
| 657 | _exit (EXIT_FAILURE); | 657 | _exit (EXIT_FAILURE); |
| 658 | } | 658 | } |
| 659 | 659 | ||
| 660 | if (close_stream (stderr) != 0) | 660 | /* Do not close stderr if addresses are being sanitized, as the |
| 661 | _exit (EXIT_FAILURE); | 661 | sanitizer might report to stderr after this function is |
| 662 | invoked. */ | ||
| 663 | if (!ADDRESS_SANITIZER && close_stream (stderr) != 0) | ||
| 664 | _exit (EXIT_FAILURE); | ||
| 662 | } | 665 | } |
| 663 | 666 | ||
| 664 | /* ARGSUSED */ | 667 | /* ARGSUSED */ |