Skip to content

OS process leaked on timeout in BackendHealthMonitor #213

@fatihkan

Description

@fatihkan

Bug Description

In BackendHealthMonitor.swift:193-218, when a health check times out, the spawned Process is not terminated. The zombie process continues running indefinitely, leaking system resources.

Location

CreedFlow/Sources/CreedFlow/Services/Health/BackendHealthMonitor.swift:193-218

Severity

Critical — OS process leak. Over time, accumulates zombie processes.

Steps to Fix

  1. Store a reference to the Process
  2. On timeout, call process.terminate() and process.waitUntilExit()
  3. Register with ProcessTracker for cleanup on app exit

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcriticalCritical prioritymemory-leakMemory leak issuemonitoringHealth monitoring and observabilityswiftSwift/SwiftUI codev1.7.0Target: v1.7.0 release

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions