mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-09 23:34:26 +00:00
Call Wait()
to prevent processes from being defunct
This commit is contained in:
parent
b4b9435b58
commit
2aaa155a3e
@ -216,6 +216,7 @@ func (app *App) generateHandler() func(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
go func() {
|
||||
<-exit
|
||||
cmd.Wait()
|
||||
conn.Close()
|
||||
log.Printf("Connection closed: %s", r.RemoteAddr)
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user