macOS: the socket directory is named "user", not the uid

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli

Direzione di ricerca

Start with the uid() helper, which reads /proc and so fails on macOS, and with the code that builds the Client–Daemon socket directory name from it. Switching that lookup to getuid() is the core change. The harder part is the upgrade path: decide how a Client finds an old-path Daemon once, either by checking both paths or by stopping the old Daemon. Done when the macOS socket sits under the uid and a Client started after an upgrade leaves no stale Daemon running.

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

Descrizione

enhancement

uid() reads /proc, which macOS doesn't have, so on macOS the Client–Daemon socket directory is …/T/singularity-user/ instead of using the uid. Harmless (macOS's $TMPDIR is private to the user), but worth fixing with getuid().

Care is needed: renaming the directory strands a running Daemon on the old path, so on the first start after an upgrade the Client must look on both paths (or stop the old Daemon) once.

Done when

  • On macOS the socket lives under the uid
  • A Client started after an upgrade leaves no stale Daemon running
Lingua principale
Rust
Stelle
0
Fork
0
Merge medio
3h 30m
PR unite (30g)
25

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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.

Altre issue di publicusr/singularity

Tutte le issue di publicusr/singularity

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.