Closed ghost closed 2 years ago
func onError() { ... e.waitCh <- &drivers.ExitResult }
waitCh is defined as
func newDtleTaskHandle() { waitCh: make(chan *drivers.ExitResult, 1), }
and read only once
func handleWait() { case result := <-handle.waitCh: }
A concurrent call to onError might block on waitCh forever.
onError
nomad job stop
目前两者都调用了handle.Destroy(), 待review。
waitCh is defined as
and read only once
A concurrent call to
onError
might block on waitCh forever.