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

Use of os.Exit() in appsdk.MakeItRun() #83

Closed
michaelestrin opened this issue May 24, 2019 · 0 comments
Closed

Use of os.Exit() in appsdk.MakeItRun() #83

michaelestrin opened this issue May 24, 2019 · 0 comments
Assignees
Labels
bug Something isn't working edinburgh

Comments

@michaelestrin
Copy link
Member

appsdk.MakeItRun() calls os.Exit(0) (src/github.com/edgexfoundry/app-functions-sdk-go/appsdk/sdk.go:191) which prevents the defer close(httpErrors) statement from executing. It also prevents any SDK-based application from executing clean up code after appsdk.MakeItRun() returns.

Based on 4b9771a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working edinburgh
Projects
No open projects
Development

No branches or pull requests

3 participants