Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix crashes on kqueue-platforms when built with go-1.14
Go 1.14 introduces asynchronous preemption, which interrupts running goroutines by sending a SIGURG signal. Some syscalls, like kevent(2), will return EINTR when that happens. grok_exporter was treating EINTR like an error, even though no error code was set. The result was an eventual nil dereference. This patch fixes the bug by restarting kevent on EINTR. Submitted by: @a1exanderpetrov Sponsored by: Axcient Fixes: 90
- Loading branch information