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

View File

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