GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — proctree: per-child cleanup misses a daemon that already detached from that child · Issue #23 · Overbaker/hapi-rust

proctree: per-child cleanup misses a daemon that already detached from that child #23

New issue
Copy link
New issue
Copy link
Done
Done
proctree: per-child cleanup misses a daemon that already detached from that child#23
Copy link
Labels
help wantedHigh-impact track open for community contributors and co-maintainersknown-gapRecorded finding kept open on purpose; fix when it matters or when the area is redesignedrust-wrapperRust session wrapper (fork-only)

Description

@Overbaker
Overbaker
opened on Nov 20, 2026
Issue body actions

The redesigned lifecycle/proctree.rs relies on the wrapper being a child subreaper. A process that double-forks and calls setsid is re-parented to the wrapper, so wrapper-wide shutdown (kill_agent_tree) finds and kills it. But terminate_child_tree(pid) only walks the subtree of pid and its process group; once Linux has dropped the link between the daemon and the original child, that call can return true while the daemon is still alive until the wrapper exits.

Not handled on purpose in the draft (also: PID reuse between scan and signal, concurrent deadline changes, a sibling placed into the child's process group).

Possible directions if it matters in practice: tag each child subtree with its own session or cgroup; or track adoptions through the subreaper (every re-parented PID seen while a child is alive is attributed to it).

Windows: the counterpart is a Job Object per child with kill-on-close, which does not have this gap.

Activity

  1. Overbaker
    added
    known-gapRecorded finding kept open on purpose; fix when it matters or when the area is redesigned
    rust-wrapperRust session wrapper (fork-only)
    help wantedHigh-impact track open for community contributors and co-maintainers
    on Nov 20, 2026
  2. Overbaker commented on Nov 28, 2026

    @Overbaker
    Overbaker
    on Nov 28, 2026
    OwnerAuthor
    More actions

    Fixed by #47 (merged into deploy/next, shipped in v0.36.7-rust.6). Anything the PR left open is listed under its Known gaps.

  3. Overbaker
    closed this as completedon Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedHigh-impact track open for community contributors and co-maintainersknown-gapRecorded finding kept open on purpose; fix when it matters or when the area is redesignedrust-wrapperRust session wrapper (fork-only)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.