mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 09:07:19 +00:00
@ -55,7 +55,9 @@ func RestartProcess() (int, error) {
|
||||
unixListener.SetUnlinkOnClose(false)
|
||||
}
|
||||
// Remember to close these at the end.
|
||||
defer files[i].Close()
|
||||
defer func(i int) {
|
||||
_ = files[i].Close()
|
||||
}(i)
|
||||
}
|
||||
|
||||
// Use the original binary location. This works with symlinks such that if
|
||||
|
Reference in New Issue
Block a user