Pulse/cmd/pulse-agent
rcourtman 035436ad6e fix: add mutex to prevent concurrent map writes in Docker agent CPU tracking
The agent was crashing with 'fatal error: concurrent map writes' when
handleCheckUpdatesCommand spawned a goroutine that called collectOnce
concurrently with the main collection loop. Both code paths access
a.prevContainerCPU without synchronization.

Added a.cpuMu mutex to protect all accesses to prevContainerCPU in:
- pruneStaleCPUSamples()
- collectContainer() delete operation
- calculateContainerCPUPercent()

Related to #1063
2026-01-15 21:10:55 +00:00
..
health_test.go test: expand cmd and agent update coverage 2025-12-17 13:28:17 +00:00
main.go fix: add mutex to prevent concurrent map writes in Docker agent CPU tracking 2026-01-15 21:10:55 +00:00
main_test.go test(agent): achieve 95% coverage for pulse-agent 2026-01-03 20:52:42 +00:00
service_stub.go Add Windows service support to unified agent 2025-11-27 17:00:03 +00:00
service_windows.go Add Windows service support to unified agent 2025-11-27 17:00:03 +00:00