From edaf82c330629586b1158a3dec407d53084b02e3 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 17 Jun 2018 21:52:28 +0300 Subject: Fix a corner case with EPIPE to stdout/stderr. --- debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debug.c') diff --git a/debug.c b/debug.c index ed763e38..2e68cde7 100644 --- a/debug.c +++ b/debug.c @@ -5405,11 +5405,11 @@ save_options(const char *file) static void close_all() { - bool stdio_problem; + bool stdio_problem, got_EPIPE; struct command_source *cs; (void) nextfile(& curfile, true); /* close input data file */ - (void) close_io(& stdio_problem); + (void) close_io(& stdio_problem, & got_EPIPE); if (cur_srcfile->fd != INVALID_HANDLE) { close(cur_srcfile->fd); cur_srcfile->fd = INVALID_HANDLE; -- cgit v1.2.3