shell-async commands now don't create zombie processes (#407)

This commit is contained in:
gotroyb127 authored and GitHub committed 2020-07-14 19:44:13 +03:00
1 parent 75e59cdd08
commit f2e3c7a0ce
1 file changed
+6
+6
View File
@@ -429,5 +429,11 @@ func (app *app) runShell(s string, args []string, prefix string) {
app.ui.cmdPrefix = ""
app.ui.exprChan <- &callExpr{"load", nil, 1}
}()
case "&":
go func() {
if err := cmd.Wait(); err != nil {
log.Printf("running shell: %s", err)
}
}()
}
}