gitea/modules/graceful
wxiaoguang 90a3f2d4b7
Avoid unexpected panic in graceful manager (#29629)
There is a fundamental design problem of the "manager" and the "wait
group".
If nothing has started, the "Wait" just panics: sync: WaitGroup is
reused before previous Wait has returned
There is no clear solution besides a complete rewriting of the "manager"

If there are some mistakes in the app.ini, end users would just see the
"panic", but not the real error messages. A real case: #27643

This PR is just a quick fix for the annoying panic problem.
2024-03-06 11:50:39 +00:00
..
releasereopen
context.go
manager_common.go Suggest to use Type=simple for systemd service (#28717) 2024-01-07 15:18:04 +00:00
manager_unix.go Avoid unexpected panic in graceful manager (#29629) 2024-03-06 11:50:39 +00:00
manager_windows.go Avoid unexpected panic in graceful manager (#29629) 2024-03-06 11:50:39 +00:00
manager.go
net_unix.go
net_windows.go
restart_unix.go
server_hooks.go
server_http.go
server.go