Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main: cancel commands on sigint/sigterm #9

Merged
merged 2 commits into from
Jun 25, 2017

Conversation

therealplato
Copy link
Contributor

No description provided.

main.go Outdated
@@ -187,3 +193,10 @@ func trimEmpty(s []string) []string {
}
return r
}

func awaitSignal(cancel context.CancelFunc) {
signals := make(chan os.Signal, 1)
Copy link
Owner

Choose a reason for hiding this comment

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

Can you remove the buffer please?

@marianogappa marianogappa merged commit e171319 into marianogappa:master Jun 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants