Skip to content
This repository was archived by the owner on Mar 31, 2023. It is now read-only.

Use buffered channel for signal.Notify #37

Merged
merged 1 commit into from
Dec 26, 2022

Conversation

itchyny
Copy link
Contributor

@itchyny itchyny commented Apr 13, 2022

The channel for signal.Notify must not block; use buffered channel as documented. Found by go vet ./....

 $ go vet ./...
# github.com/cybozu-go/log/testcmd
testcmd/main.go:33:3: misuse of unbuffered os.Signal channel as argument to signal.Notify

If this is intentional, we should add comment.

@daichimukai daichimukai force-pushed the fix-signal-notify-chan branch from 1e8a9e3 to 578b5b1 Compare December 26, 2022 08:13
@daichimukai
Copy link
Contributor

I've pushed an empty commit and removed it to melt the frozen workflow.

Copy link
Contributor

@daichimukai daichimukai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daichimukai daichimukai merged commit b6c84e5 into cybozu-go:main Dec 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants