Merge pull request #4309 from gaurav1086/waitForPid_fix_goroutine_leak
waitForPid: fix goroutine leak
This commit is contained in:
commit
7868e8d6aa
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user