• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 23749352567

30 Mar 2026 02:13PM UTC coverage: 65.531% (-0.007%) from 65.538%
23749352567

push

github

web-flow
Treat PID 0 as dead in supervisor liveness check (#4431)

Treat PID 0 as dead in isSupervisorProcessAlive

During transport restart, ResetWorkloadPID sets process_id to 0 in
the status file. isSupervisorProcessAlive only checked for an error
from GetWorkloadPID, so (0, nil) was treated as a live supervisor.
This caused thv restart to silently no-op during the transient
window where PID is 0.

Fixes #4429

Signed-off-by: Greg Katz <gkatz@indeed.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Muhammad Amir Ejaz <amir@stacklok.com>

3 of 3 new or added lines in 1 file covered. (100.0%)

12 existing lines in 3 files now uncovered.

52857 of 80659 relevant lines covered (65.53%)

62.67 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

79.38
/pkg/transport/proxy/httpsse/http_proxy.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc