Record the holder pid in /tmp/hello-s.claim
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Start with tests/bench-suite.sh and the lock handling for /tmp/hello-s.claim; read the linked #501 discussion and the reverted changes in f9d6cb9 and 728668c for the timeout cases. Update the holder PID recording and checks described in the proposal, then verify the three failure cases: interruption, orb run creating the lock before timeout, and polling timeout while another suite holds it.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
tests/bench-suite.sh serializes the /tmp/hello-s reclaim with a mkdir lock, /tmp/hello-s.claim (#501). The lock records no holder, so three cases leave it behind or cannot be told apart:
- A
kill -9while the lock is held, or Ctrl-C between themkdirandT1_HELLO_CLAIM=/tmp/hello-s.claim, leaves the lock. Every later suite waits 10 seconds and stops with "is held", and that message cannot say whether the holder is still alive (https://github.com/sysprog21/elfuse/pull/501#discussion_r4510350038). - On OrbStack, an
orb runthat makes the lock and then times out loses itsok. The suite stops with "cannot create" and the lock is left, not recorded. - That empty output looks the same as a polling
orb runthat times out while another suite holds the lock, so recording the lock on empty output would let the EXIT cleanup remove a live suite's lock (tried in f9d6cb9, reverted in 728668c).
Proposal: write $$ into the lock directory at mkdir time. The "is held" message prints that pid and whether kill -0 finds it. On empty output, the suite records the lock only when it holds this suite's pid. A dead holder's lock is never removed automatically, because two waiters doing that would bring back the race the lock closes.
Refs #501
- Lingua principale
- C
- Stelle
- 287
- Fork
- 33
- Merge medio
- 2g 17h
- PR unite (30g)
- 18
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di sysprog21/elfuse
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di sysprog21/elfuse
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
libreswan/libreswan#3185 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
[SDL3pp] update to 0.12.0Apertacategory:port-update
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
[InstCombine] 23.x folds 0.0 * (0.0 / x) to 0.0 when x may be zero (fixed on main by #202482)Apertallvm:instcombine
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
llvm/llvm-project#246503 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno