Skip to content

v0.2

Choose a tag to compare

@wushilin wushilin released this 29 Aug 14:51
· 25 commits to master since this release

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 its Child handle and relied on the cgroup waiter, which never calls waitpid. Each service exit left one zombie for the daemon's lifetime. Service children are now registered with the reaper via disown_service_child(); scheduled jobs keep their process waiter and exit code.
  • stop_command helpers that time out (and are then cgroup-killed) are registered with the reaper instead of leaking.
  • boot_start / failure_auto_restart now report a real spawn error instead of a misleading "cgroup stayed empty" timeout.
  • spawn_process_waiter registers 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 linked processmaster + pmctl (co-built) for x86_64 Linux.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GoeGSAVFMbEgA7jjBLoRnC