summaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-13 09:51:41 +0300
committerPaul Buetow <paul@buetow.org>2026-05-13 09:51:41 +0300
commit66956756ba018ed32a455aa57f04517af2c7357f (patch)
tree6dc86c8f3f77c684c711775a62346648a1ab5ada /go.mod
parent6c7a5d5fb3e88068799fb414e316b6bec31015e9 (diff)
fix: surface rb.Poll errors instead of silently dropping them
The libbpfgo RingBuffer.Poll() previously launched a background goroutine that could fail with a fatal C-level errno (e.g. EBADF, EPERM) and silently exit, causing BPF events to stop flowing with no diagnostic. Changes: - Patch ../libbpfgo (replace directive) so RingBuffer.Poll() returns a buffered <-chan error that the background goroutine sends to on failure. - In setupEventChannel, capture the error channel and spawn a monitoring goroutine that logs any poll error to stderr. - Update go.mod with the replace directive and drop the now-unused remote checksum entries from go.sum. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'go.mod')
-rw-r--r--go.mod2
1 files changed, 2 insertions, 0 deletions
diff --git a/go.mod b/go.mod
index 7e68ecd..886c481 100644
--- a/go.mod
+++ b/go.mod
@@ -39,3 +39,5 @@ require (
golang.org/x/sys v0.41.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
)
+
+replace github.com/aquasecurity/libbpfgo => ../libbpfgo