Worker uses plain getopt_long(), not argp, so it has no free --version handling like controller/scheduler. Adds a long-only OPT_VERSION=257 option and a handling case that computes xce_compose_version() into a static buffer and returns before any startup work (check_user()/ xcecd_init/xcecd_start). Both startup INFO log branches (--peers and no-peers) extended to log the identical buffer. Live-verified: --version and both startup-log branches are byte-identical (captured via a real daemon run under sudo). Also updates bug-1519 (pre-existing, unrelated ASAN "Joining already joined thread" abort during worker shutdown): independently reproduced under real root during this task's review, refining its prior "never reproduced under real root" note -- not a userns/unshare artifact, still unfixed, does not affect this task's code path. Task 3.3/13 of build-time-versioning. This closes out the "Core: C daemon version display" phase (tasks 3.1-3.3). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| settings | ||
| specs | ||
| steering | ||