From d905ed33feadf5234f4bcaae016a290dbf4738ad Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sun, 15 Jan 2017 19:27:53 -0800 Subject: [PATCH] another glibc EIO workaround Partial fix for #3737 and #3644 --- src/exec.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/exec.cpp b/src/exec.cpp index 50b09d558..ca98afa50 100644 --- a/src/exec.cpp +++ b/src/exec.cpp @@ -929,6 +929,8 @@ void exec_job(parser_t &parser, job_t *j) { bool builtin_io_done = do_builtin_io(outbuff.data(), outbuff.size(), errbuff.data(), errbuff.size()); if (!builtin_io_done && errno != EPIPE) { + redirect_tty_output(); // workaround glibc bug + debug(0, "!builtin_io_done and errno != EPIPE"); show_stackframe(L'E'); } fork_was_skipped = true;