NVIDIA / NVIDIA/OpenShell

refactor(supervisor): make managed child ownership structural

Aperta
#3,154 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Rust
Stelle
8.7k
Fork
1.3k
Merge medio
2g 7h
PR unite (30g)
243

Descrizione

Description

Make Linux managed-child ownership structural so callers cannot accidentally separate spawning, PID registration, waiting, unregistering, and lost-child diagnostics.

Context

The child reaper race fixed by PR #3142 required every Linux child path to use the correct registration protocol. The current registry helper closes the immediate spawn-to-registration window, but ownership remains a convention across canonical and SSH process paths. The diagnostics and wait-handling follow-ups explored during that review belong with the ownership cleanup.

Definition of Done

  • Introduce a managed-child abstraction that owns Linux child registration and cleanup.
  • Route canonical and SSH child paths through the abstraction.
  • Centralize explicit-wait handling, unregistering, and ECHILD diagnostics.
  • Add deterministic tests for ownership and reaper interleavings.
  • Preserve non-Linux behavior without introducing Linux-only reaper machinery there.

Related Work

  • PR #3142

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia leggendo PR #3142, quindi segui i percorsi child canonical e SSH indicati nell’issue per comprendere il loro attuale flusso di registrazione e pulizia. Il lavoro è completato quando entrambi i percorsi usano un’unica astrazione managed-child, l’attesa e la gestione di ECHILD sono centralizzate, esistono test deterministici di interleaving e il comportamento non-Linux rimane invariato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
rust
Ambito
operating-systems
Tipo di issue
Refactoring
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Attiva
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.