mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
backport of commit 7872338ec1 (#23639)
Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4fea2d147c
commit
9bdfa0f170
3
changelog/23636.txt
Normal file
3
changelog/23636.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
command/server: Fix bug with sigusr2 where pprof files were not closed correctly
|
||||
```
|
||||
@@ -1790,8 +1790,10 @@ func (c *ServerCommand) Run(args []string) int {
|
||||
err = pprof.Lookup(dump).WriteTo(pFile, 0)
|
||||
if err != nil {
|
||||
c.logger.Error("error generating pprof data", "name", dump, "error", err)
|
||||
pFile.Close()
|
||||
break
|
||||
}
|
||||
pFile.Close()
|
||||
}
|
||||
|
||||
c.logger.Info(fmt.Sprintf("Wrote pprof files to: %s", dir))
|
||||
|
||||
Reference in New Issue
Block a user