Merge pull request #4309 from gaurav1086/waitForPid_fix_goroutine_leak

waitForPid: fix goroutine leak
This commit is contained in:
Michael Crosby 2020-06-08 16:34:53 -04:00 committed by GitHub
commit 7868e8d6aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,7 @@ func adjustOom(adjustment int) (int, error) {
} }
func waitForPid(process *os.Process) (int, error) { func waitForPid(process *os.Process) (int, error) {
c := make(chan int) c := make(chan int, 1)
go func() { go func() {
for { for {
pid := process.Pid pid := process.Pid