Skip to content

Conversation

@dtomcej
Copy link
Contributor

@dtomcej dtomcej commented Jun 15, 2021

What does this PR do?

Creates a buffered signal channel so that signals don't get dropped.

Motivation

Required to pass newer versions of go vet

More

  • [ ] Added/updated tests not needed
  • [ ] Added/updated documentation not needed

Additional Notes

Our code looks like the example given:

golang/go#45043 (comment)

The signal documentation suggests using a sufficient sized buffer to handle signal backup in the channel: https://golang.org/pkg/os/signal/#Notify so I figure 100 signals should be more than sufficient.

@dtomcej
Copy link
Contributor Author

dtomcej commented Jun 15, 2021

I am unsure if this is a "bugfix" worthy of being on 2.4, but it is a quick rebase if needed.

@ldez ldez modified the milestone: next Jun 17, 2021
@ldez ldez force-pushed the buffer-signal-chan branch from 36680e7 to 54fcb25 Compare June 17, 2021 17:00
@ldez ldez changed the base branch from master to v2.4 June 17, 2021 17:00
@ldez ldez added kind/bug/fix a bug fix and removed kind/enhancement a new or improved feature. labels Jun 17, 2021
@ldez ldez added this to the 2.4 milestone Jun 17, 2021
Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@jbdoumenjou jbdoumenjou left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants