Commit 2aaa155a by Iwasaki Yudai

Call `Wait()` to prevent processes from being defunct

1 parent b4b9435b
Showing with 1 additions and 0 deletions
...@@ -216,6 +216,7 @@ func (app *App) generateHandler() func(w http.ResponseWriter, r *http.Request) { ...@@ -216,6 +216,7 @@ func (app *App) generateHandler() func(w http.ResponseWriter, r *http.Request) {
go func() { go func() {
<-exit <-exit
cmd.Wait()
conn.Close() conn.Close()
log.Printf("Connection closed: %s", r.RemoteAddr) log.Printf("Connection closed: %s", r.RemoteAddr)
}() }()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!