create process group for shell-pipe and shell-async (#753)
This commit is contained in:
1 parent
3e3a4a6386
commit
c5bd676c3a
6 files changed
+47
-14
No files matched your search
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user