fx icon indicating copy to clipboard operation
fx copied to clipboard

Deadlock in `signalReceivers.Stop`

Open ogaca-dd opened this issue 1 year ago • 6 comments

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

ogaca-dd avatar Jun 26 '24 08:06 ogaca-dd