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

Improper shutdown on Windows causing issues with integrations #85

Open
AndersonQ opened this issue Oct 14, 2022 · 0 comments
Open

Improper shutdown on Windows causing issues with integrations #85

AndersonQ opened this issue Oct 14, 2022 · 0 comments
Assignees

Comments

@AndersonQ
Copy link
Member

tl;dr:

  • on Windows a CTRL_CLOSE_EVENT, CTRL_LOGOFF_EVENT or CTRL_SHUTDOWN_EVENT is sent as a syscall.SIGTERM to [signal.Notify]
  • the code dealing with the SCM might not be triggered when a syscall.SIGTERM is received
  • the shutdown code relies on defer which does not run when os-Exit is called.

A detailed explanation is found on elastic/elastic-agent#1525. This issue is seen in the Elastic Agent, and part of the problem resides on the elastic-agent-libs

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

No branches or pull requests

1 participant