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

Fix hang during init on Windows if WMI is unavailable #74

Merged
merged 2 commits into from
Jun 9, 2017

Conversation

andrewkroh
Copy link
Member

This issue affected Windows Vista and newer. During the init() phase a WMI call was made to get the system boot time. If WMI wasn't fully up the call would hang which blocked the entire application from initializing.

This issue affected Windows Vista and newer. During the `init()` phase a WMI call was made to get the system boot time. If WMI wasn't fully up the call would hang which blocked the entire application from initializing.
@@ -82,7 +74,15 @@ func (self *ProcFDUsage) Get(pid int) error {
func (self *Uptime) Get() error {
Copy link

Choose a reason for hiding this comment

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

I guess we don't have to worry about this being called concurrently?

Copy link
Member Author

Choose a reason for hiding this comment

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

Since we can't guarantee how the library will be used I would feel more comfortable if it was concurrency-safe. I will make a change.

@exekias exekias merged commit f2be2a7 into elastic:master Jun 9, 2017
andrewkroh added a commit to andrewkroh/beats that referenced this pull request Jun 12, 2017
Fixed Windows issue that caused a hang during `init()` if WMI wasn't ready. elastic/gosigar#74

Fixes elastic#4373
exekias pushed a commit to elastic/beats that referenced this pull request Jun 13, 2017
* Update gosigar to fix Windows service timeout

Fixed Windows issue that caused a hang during `init()` if WMI wasn't ready. elastic/gosigar#74

Fixes #4373
andrewkroh added a commit to andrewkroh/gosigar that referenced this pull request Jun 13, 2017
Fix hang during init on Windows if WMI is unavailable

This issue affected Windows Vista and newer. During the `init()` phase a WMI call was made to get the system boot time. If WMI wasn't fully up the call would hang which blocked the entire application from initializing.
tsg pushed a commit that referenced this pull request Jun 13, 2017
Fix hang during init on Windows if WMI is unavailable

This issue affected Windows Vista and newer. During the `init()` phase a WMI call was made to get the system boot time. If WMI wasn't fully up the call would hang which blocked the entire application from initializing.
andrewkroh added a commit to andrewkroh/beats that referenced this pull request Jun 13, 2017
Fixed Windows issue that caused a hang during `init()` if WMI wasn't ready. elastic/gosigar#74 elastic/gosigar#76

Fixes elastic#4373
andrewkroh added a commit to andrewkroh/beats that referenced this pull request Jun 13, 2017
Fixed Windows issue that caused a hang during `init()` if WMI wasn't ready. elastic/gosigar#74 elastic/gosigar#76

Fixes elastic#4373
tsg pushed a commit to elastic/beats that referenced this pull request Jun 14, 2017
Fixed Windows issue that caused a hang during `init()` if WMI wasn't ready. elastic/gosigar#74 elastic/gosigar#76

Fixes #4373
tsg pushed a commit to elastic/beats that referenced this pull request Jun 14, 2017
Fixed Windows issue that caused a hang during `init()` if WMI wasn't ready. elastic/gosigar#74 elastic/gosigar#76

Fixes #4373
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Fixed Windows issue that caused a hang during `init()` if WMI wasn't ready. elastic/gosigar#74 elastic/gosigar#76

Fixes elastic#4373
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.

2 participants