From f27700cc536623234e8757cedfcae96d61dc4120 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 23 Jul 2018 08:32:17 +1000 Subject: [PATCH] Restore SIGPIPE handler to default before spawning shell Fixes #2238 --- src/shell_manager.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shell_manager.cc b/src/shell_manager.cc index 6aa2b31d..b92edb4c 100644 --- a/src/shell_manager.cc +++ b/src/shell_manager.cc @@ -167,6 +167,7 @@ std::pair ShellManager::eval( Pipe child_stdin{not input.empty()}, child_stdout, child_stderr; pid_t pid = spawn_shell(m_shell.c_str(), cmdline, shell_context.params, kak_env, [&child_stdin, &child_stdout, &child_stderr] { + set_signal_handler(SIGPIPE, SIG_DFL); auto move = [](int oldfd, int newfd) { if (oldfd == newfd)