Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-30 21:07:14 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-30 21:07:14 +0300
commit9e7f94a7408534411dc8da69c9e3ad3a55722b51 (patch)
treebaf917b2ab176390258c3a6a282b3b2432d4469c /workhorse/internal/imageresizer
parent826cf5293fb78029f76c5e769696e3b37e681207 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'workhorse/internal/imageresizer')
-rw-r--r--workhorse/internal/imageresizer/image_resizer.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/workhorse/internal/imageresizer/image_resizer.go b/workhorse/internal/imageresizer/image_resizer.go
index 092369cd2af..4a7e52d92d9 100644
--- a/workhorse/internal/imageresizer/image_resizer.go
+++ b/workhorse/internal/imageresizer/image_resizer.go
@@ -21,6 +21,7 @@ import (
"gitlab.com/gitlab-org/gitlab/workhorse/internal/config"
"gitlab.com/gitlab-org/gitlab/workhorse/internal/helper"
+ "gitlab.com/gitlab-org/gitlab/workhorse/internal/helper/command"
"gitlab.com/gitlab-org/gitlab/workhorse/internal/log"
"gitlab.com/gitlab-org/gitlab/workhorse/internal/senddata"
"gitlab.com/gitlab-org/gitlab/workhorse/internal/transport"
@@ -191,7 +192,7 @@ func (r *Resizer) Inject(w http.ResponseWriter, req *http.Request, paramsData st
// We need to log this separately since the subsequent steps might add other failures.
log.WithRequest(req).WithFields(logFields(start, params, &outcome)).WithError(err).Error()
}
- defer helper.CleanUpProcessGroup(resizeCmd)
+ defer command.KillProcessGroup(resizeCmd)
w.Header().Del("Content-Length")
outcome.bytesWritten, err = serveImage(imageReader, w, resizeCmd)