diff --git a/src/aux.c b/src/aux.c index 1f82c36..975fec7 100644 --- a/src/aux.c +++ b/src/aux.c @@ -96,6 +96,7 @@ filter_lines (off_t from, off_t to, const char *sc, ed_buffer_t *ed) /* Reset signals for shell. */ signal (SIGINT, SIG_DFL); signal (SIGQUIT, SIG_DFL); + signal (SIGPIPE, SIG_DFL); /* * Redirect read/write pipes to command's standard I/O. Close diff --git a/src/cmds.c b/src/cmds.c index 4bfac92..036040d 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -322,6 +322,7 @@ system_shell (const char *sc, ed_buffer_t *ed) /* Reset signals for shell. */ signal (SIGINT, SIG_DFL); signal (SIGQUIT, SIG_DFL); + signal (SIGPIPE, SIG_DFL); if (execl ("/bin/sh", "sh", "-c", sc, NULL) < 0) {