Repository navigation
Use native process identities for PID-managed daemons - #45779
Merged
copyberry[bot] merged 1 commit intoSep 15, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## Why Locale, timezone, or system clock changes can alter the `ps` start-time text used to identify a running daemon, causing its PID record to be treated as stale. ## What changed - Record and check native process identities on Linux and macOS, using boot IDs to reject records from previous boots and native process details to detect PID reuse. - Keep `processStartTime` for older clients and promote verifiable legacy daemon and updater records when the updater starts. - Retain legacy records and report an error when a live process's start-time text no longer matches. Propagate Windows process-access errors instead of treating inaccessible PIDs as stale. ## Testing Add regression coverage for locale and timezone changes, altered legacy timestamps, legacy record promotion, PID reuse, previous boots, and macOS process ownership differences. Extend zombie-reaping coverage to native identities and verify that Windows access-denied errors are preserved. GitOrigin-RevId: b5752497c0e8186bb604fe5dd33f570acc068f20
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/b5752497c0e8186bb604fe5dd33f570acc068f20
branch
from
September 15, 2026 19:46
1a8f5c4 to
c031629
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/b5752497c0e8186bb604fe5dd33f570acc068f20
branch
September 15, 2026 19:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use native process identities for PID-managed daemons
Why
Locale, timezone, or system clock changes can alter the
psstart-time text used to identify a running daemon, causing its PID record to be treated as stale.What changed
processStartTimefor older clients and promote verifiable legacy daemon and updater records when the updater starts.Testing
Add regression coverage for locale and timezone changes, altered legacy timestamps, legacy record promotion, PID reuse, previous boots, and macOS process ownership differences. Extend zombie-reaping coverage to native identities and verify that Windows access-denied errors are preserved.