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)