Skip to content

Deadlock in signalReceivers.Stop #1219

Closed
@ogaca-dd

Description

@ogaca-dd

Describe the bug
There is a deadlock in signalReceivers.Stop:

There is a deadlock.

To Reproduce
Run the following code:

func main() {
	fx.New(fx.Invoke(func(shutdowner fx.Shutdowner) {
		go func() {
			_ = syscall.Kill(syscall.Getpid(), syscall.SIGINT)
			_ = shutdowner.Shutdown()
		}()
	})).Run()
}

Expected behavior
No deadlock

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions