Commit 69d0a850 authored by Paul Eggert's avatar Paul Eggert

Do not discard AddressSanitizer stderr

* src/emacs.c (close_output_streams) [ADDRESS_SANITIZER]:
Do not close stderr.
parent be9e60fc
......@@ -657,8 +657,11 @@ close_output_streams (void)
_exit (EXIT_FAILURE);
}
if (close_stream (stderr) != 0)
_exit (EXIT_FAILURE);
/* Do not close stderr if addresses are being sanitized, as the
sanitizer might report to stderr after this function is
invoked. */
if (!ADDRESS_SANITIZER && close_stream (stderr) != 0)
_exit (EXIT_FAILURE);
}
/* ARGSUSED */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment