Skip to content

Possible blocking on waitCh #1021

Closed
Closed
@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions