consciousness/src
Kent Overstreet 0e459aae92 thalamus/supervisor: reap channel daemons via SIGCHLD instead of SIG_IGN
SIGCHLD=SIG_IGN at main() was auto-reaping all children in the kernel,
which broke tokio::process::Command::wait() — every tool that spawned a
subprocess (bash, mcp clients) was getting ECHILD because tokio couldn't
waitpid() on a child the kernel had already reaped.

Replace with a SIGCHLD signal handler task that reaps only PIDs listed in
channels_dir() (via waitpid(pid, WNOHANG) — ECHILD on non-child is a
harmless no-op). Tokio-spawned children aren't in PID files, so tokio's
own per-child wait paths are untouched.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-24 11:54:25 -04:00
..
agent agent/context: make Thinking blocks prompt-visible 2026-04-24 11:54:25 -04:00
bin context: tighten timestamp schema; every AstNode has one 2026-04-16 12:35:16 -04:00
cli config: move user_name/assistant_name to AppConfig (top level) 2026-04-16 16:20:17 -04:00
hippocampus scoring: drop dead Elo/agent_budget block in consolidation_plan 2026-04-16 16:08:20 -04:00
learn rust edition 2024 2026-04-05 06:20:16 -04:00
mind cleanup: drop dead ApiClient::stream_completion wrapper, silence dmn_tick 2026-04-17 16:23:59 -04:00
subconscious agent/api: carry readout alongside streamed tokens 2026-04-18 01:15:46 -04:00
thalamus thalamus/supervisor: reap channel daemons via SIGCHLD instead of SIG_IGN 2026-04-24 11:54:25 -04:00
user thalamus/supervisor: reap channel daemons via SIGCHLD instead of SIG_IGN 2026-04-24 11:54:25 -04:00
config.rs user: F7 compare screen 2026-04-17 16:12:26 -04:00
config_writer.rs config_writer: emit pretty multi-line sections, drop json5 crate 2026-04-16 13:08:19 -04:00
lib.rs config_writer: json5 round-trip editing via json-five 2026-04-16 11:48:47 -04:00
locks.rs locks: add process-wide lock hold time tracking 2026-04-12 20:27:42 -04:00
main.rs poc-memory: load AppConfig at startup 2026-04-16 18:19:01 -04:00
mcp_server.rs memory.rs: clean up store access and tool dispatch 2026-04-13 14:27:38 -04:00
session.rs delete claude code integration 2026-04-09 19:58:07 -04:00
util.rs delete 20 dead public functions across 12 files 2026-04-02 16:21:01 -04:00