From 42f3c71b1463eed180af6eb3ea35704b834f76d6 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 30 Sep 2014 17:00:51 +0800 Subject: [PATCH] release command (Z) --- output/outputs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/output/outputs.go b/output/outputs.go index 78b9f12..a4f910e 100644 --- a/output/outputs.go +++ b/output/outputs.go @@ -258,6 +258,7 @@ func BuildHandler(w http.ResponseWriter, r *http.Request) { go func(runningId int) { defer util.Recover() + defer cmd.Wait() glog.V(3).Infof("Session [%s] is building [id=%d, file=%s]", sid, runningId, filePath) @@ -421,6 +422,7 @@ func GoInstallHandler(w http.ResponseWriter, r *http.Request) { go func(runningId int) { defer util.Recover() + defer cmd.Wait() glog.V(3).Infof("Session [%s] is running [go install] [id=%d, dir=%s]", sid, runningId, curDir) @@ -548,6 +550,7 @@ func GoGetHandler(w http.ResponseWriter, r *http.Request) { go func(runningId int) { defer util.Recover() + defer cmd.Wait() glog.V(3).Infof("Session [%s] is running [go get] [runningId=%d]", sid, runningId)