gitea/modules/graceful
zeripath 4a04740daf
Handle panics that percolate up to the graceful module ()
* Handle panics in graceful goroutines

Adds a some deferred functions to handle panics in graceful goroutines

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Handle panic in webhook.Deliver

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Handle panic in mirror.syncMirror

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
..
context.go Graceful: Xorm, RepoIndexer, Cron and Others ()
manager.go Handle panics that percolate up to the graceful module ()
manager_unix.go Restore graceful restart on SIGHUP ()
manager_windows.go [UI] Show pull icon on pull ()
net_unix.go Graceful: Xorm, RepoIndexer, Cron and Others ()
net_windows.go Fix missed change to GetManager() ()
restart_unix.go Graceful: Xorm, RepoIndexer, Cron and Others ()
server.go Prevent panic during wrappedConn close at hammertime ()
server_hooks.go Graceful: Xorm, RepoIndexer, Cron and Others ()
server_http.go Add Graceful shutdown for Windows and hooks for shutdown of goroutines ()