]> source.dussan.org Git - gitea.git/commit
Prevent zombie processes (#16314)
authorzeripath <art27@cantab.net>
Wed, 30 Jun 2021 20:07:23 +0000 (21:07 +0100)
committerGitHub <noreply@github.com>
Wed, 30 Jun 2021 20:07:23 +0000 (22:07 +0200)
commit302e8b6d02dc9ccac00284b3cdf9a69c001882c0
treefd8a57a78924df719b8c6771d59c6577b163b659
parent365c4e9316bbcc8bdf9cf68ef237bf18ae8db315
Prevent zombie processes (#16314)

Unfortunately go doesn't always ensure that execd processes are completely
waited for. On linux this means that zombie processes can occur.

This PR ensures that these are waited for by using signal notifier in serv and
passing a context elsewhere.

Signed-off-by: Andrew Thornton <art27@cantab.net>
cmd/serv.go
modules/markup/external/external.go
modules/ssh/ssh.go