shell-async commands now don't create zombie processes (#407)
This commit is contained in:
parent
75e59cdd08
commit
f2e3c7a0ce
6
app.go
6
app.go
@ -429,5 +429,11 @@ func (app *app) runShell(s string, args []string, prefix string) {
|
|||||||
app.ui.cmdPrefix = ""
|
app.ui.cmdPrefix = ""
|
||||||
app.ui.exprChan <- &callExpr{"load", nil, 1}
|
app.ui.exprChan <- &callExpr{"load", nil, 1}
|
||||||
}()
|
}()
|
||||||
|
case "&":
|
||||||
|
go func() {
|
||||||
|
if err := cmd.Wait(); err != nil {
|
||||||
|
log.Printf("running shell: %s", err)
|
||||||
|
}
|
||||||
|
}()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user