]> source.dussan.org Git - gitea.git/commit
Second attempt at preventing zombies (#16326)
authorzeripath <art27@cantab.net>
Wed, 14 Jul 2021 14:43:13 +0000 (15:43 +0100)
committerGitHub <noreply@github.com>
Wed, 14 Jul 2021 14:43:13 +0000 (10:43 -0400)
commit3dcb3e9073d825a4ada184f832892cf4bd5836a3
treeaab77b7726f0e20f34b452df166113950ff5fc62
parentee43d70a0c237ef9c02b99b9b49d1af348840319
Second attempt at preventing zombies (#16326)

* Second attempt at preventing zombies

* Ensure that the pipes are closed in ssh.go
* Ensure that a cancellable context is passed up in cmd/* http requests
* Make cmd.fail return properly so defers are obeyed
* Ensure that something is sent to stdout in case of blocks here

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

Signed-off-by: Andrew Thornton <art27@cantab.net>
* placate lint 2

Signed-off-by: Andrew Thornton <art27@cantab.net>
* placate lint 3

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

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Apply suggestions from code review

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
21 files changed:
cmd/cmd.go
cmd/hook.go
cmd/keys.go
cmd/mailer.go
cmd/manager.go
cmd/restore_repo.go
cmd/serv.go
integrations/mssql.ini.tmpl
integrations/mysql.ini.tmpl
integrations/mysql8.ini.tmpl
integrations/pgsql.ini.tmpl
integrations/sqlite.ini.tmpl
modules/httplib/httplib.go
modules/private/hook.go
modules/private/internal.go
modules/private/key.go
modules/private/mail.go
modules/private/manager.go
modules/private/restore_repo.go
modules/private/serv.go
modules/ssh/ssh.go