create process group for shell-pipe and shell-async (#753)

This commit is contained in:
Christian Zangl authored and GitHub committed 2022-02-13 23:39:49 +03:00
1 parent 3e3a4a6386
commit c5bd676c3a
6 files changed
+47 -14

No files matched your search

+6 -1
View File
@@ -1772,7 +1772,12 @@ func (e *callExpr) eval(app *app, args []string) {
update(app)
case "cmd-interrupt":
if app.cmd != nil {
app.cmd.Process.Kill()
err := shellKill(app.cmd)
if err != nil {
app.ui.echoerrf("kill: %s", err)
} else {
app.ui.echoerr("process interrupt")
}
}
normal(app)
case "cmd-word":