diff options
| author | Paul Eggert | 2019-07-06 17:41:52 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-07-06 17:43:11 -0700 |
| commit | b39f5e6c9c50b3153c4e7bfac9219f14da73e4d1 (patch) | |
| tree | 46b8df94b009c3836a28917037b20c7ea31a3119 /src/sysstdio.h | |
| parent | 851535f58745dcfbc8798b3a34b4fea852f93a3e (diff) | |
| download | emacs-b39f5e6c9c50b3153c4e7bfac9219f14da73e4d1.tar.gz emacs-b39f5e6c9c50b3153c4e7bfac9219f14da73e4d1.zip | |
Don’t ignore stderr failure when ADDRESS_SANITIZER
* src/emacs.c (close_output_streams): Move from here ...
* src/sysdep.c: ... to here, where it really belongs anyway.
When ADDRESS_SANITIZER, fflush stderr and check for ferror,
to catch stderr output errors even in this case.
Diffstat (limited to 'src/sysstdio.h')
| -rw-r--r-- | src/sysstdio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sysstdio.h b/src/sysstdio.h index 3ff1d6a572a..a2364c4e1fb 100644 --- a/src/sysstdio.h +++ b/src/sysstdio.h | |||
| @@ -24,6 +24,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 24 | #include <stdio.h> | 24 | #include <stdio.h> |
| 25 | 25 | ||
| 26 | extern FILE *emacs_fopen (char const *, char const *); | 26 | extern FILE *emacs_fopen (char const *, char const *); |
| 27 | extern void close_output_streams (void); | ||
| 27 | 28 | ||
| 28 | #if O_BINARY | 29 | #if O_BINARY |
| 29 | # define FOPEN_BINARY "b" | 30 | # define FOPEN_BINARY "b" |