forked from NYANDEV/forgejo
parent
5326f4c9c5
commit
4a57c9ea17
8 changed files with 14 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue