diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-07-23 08:32:17 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-07-23 08:32:17 +1000 |
| commit | f27700cc536623234e8757cedfcae96d61dc4120 (patch) | |
| tree | c4f848e56bf3f1b66ab7fe6c0328ef1fb1973cff /src/shell_manager.cc | |
| parent | 6270ce4a80123e96242866d9f99c2a6044b808b5 (diff) | |
Restore SIGPIPE handler to default before spawning shell
Fixes #2238
Diffstat (limited to 'src/shell_manager.cc')
| -rw-r--r-- | src/shell_manager.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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<String, int> 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) |
