Repository navigation
v0.2
Fixes
- Zombie (
<defunct>) processes under the daemon. Since 09a9b0d the reaper only waits on explicitly registered pids, but every non-scheduled service start path (reload_start,ReloadRestart,ManualStart,ManualRestart,boot_start,failure_auto_restart) dropped itsChildhandle and relied on the cgroup waiter, which never callswaitpid. Each service exit left one zombie for the daemon's lifetime. Service children are now registered with the reaper viadisown_service_child(); scheduled jobs keep their process waiter and exit code. stop_commandhelpers that time out (and are then cgroup-killed) are registered with the reaper instead of leaking.boot_start/failure_auto_restartnow report a real spawn error instead of a misleading "cgroup stayed empty" timeout.spawn_process_waiterregisters the child if the waiter thread cannot be created.
Tests
- New regression test
disowned_service_child_is_reaped_not_left_defunct(101 tests total).
Assets
processmaster-v0.2-x86_64-musl.tar.gz— statically linkedprocessmaster+pmctl(co-built) for x86_64 Linux.
🤖 Generated with Claude Code