Skip to main content

Module daemon_impl

Module daemon_impl 

Source
Expand description

Core daemon state machine and runtime

This module contains the TLDRDaemon struct which manages:

  • Daemon lifecycle state (Initializing -> Ready -> ShuttingDown)
  • Salsa-style query cache
  • Session statistics tracking
  • Hook activity tracking
  • Dirty file tracking for incremental re-indexing

§Security Mitigations

  • TIGER-P2-02: Socket cleanup on abnormal exit via signal handlers

Structs§

TLDRDaemon
Main daemon process that handles client connections and manages state.

Functions§

start_daemon_background
Start a daemon in the background for the given project.
wait_for_daemon
Wait for a daemon to become ready by polling the socket.