Skip to content

Detect a launcher that exits before the parent poller starts - #1606

Open
itisrmk wants to merge 1 commit into
ipython:mainfrom
itisrmk:devin/1795854462-detect-parent-exit-on-startup
Open

itisrmk wants to merge 1 commit into
ipython:mainfrom
itisrmk:devin/1795854462-detect-parent-exit-on-startup

Conversation

@itisrmk

@itisrmk itisrmk commented Nov 28, 2026

Copy link
Copy Markdown

Fixes #1605.

When the Unix parent PID differs from the configured launcher PID at startup, check whether the launcher still exists. If it has exited, keep the original PID so the poller detects the reparenting. If the launcher is alive, retain the existing fallback for kernels started through a wrapper.

The regression covers both cases. The parent-poller and kernel-startup tests pass on CPython 3.13 (a Tornado DeprecationWarning that also fails on unmodified main was filtered locally). Ruff passes.

AI disclosure: Devin drafted the patch and regression test.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kernel never exits if its parent dies during startup and orphans are reparented to a subreaper

1 participant