iOS runCommand passes timeoutMs to spawn, which ignores it, and its comment relies on that backstop

Aperta
#1,980 1 commento 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
57/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
mobile-dev

Direzione di ricerca

Read src/drivers/ios/command-run.ts and src/ports/process-runner-types.ts, then inspect NodeProcessRunner.spawn and the ports manual to confirm the timeout contract. Determine how timeout handling should escalate a command that ignores SIGTERM, and check the related issue #1979 for context. Done when the spawn options and implementation agree with the documented contract and the command timeout can escalate as described.

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

Descrizione

bug:new

src/drivers/ios/command-run.ts:24-26 computes runnerTimeoutMs and passes it to processRunner.spawn, with the comment "the runner's own timeout is a backstop past the late kill". NodeProcessRunner.spawn reads no timeoutMs, so there is no backstop. runCommand itself still answers at its own clock timer, but a command that ignores the one SIGTERM it sends is never escalated to SIGKILL.

ProcessRunOptions (src/ports/process-runner-types.ts:2) accepts timeoutMs for spawn although the ports manual says spawn takes none, so the compiler flags neither this call nor the one in #1979.

Read in the code on origin/main at dead1fb26, not run. Found while triaging #1979.

Written by an agent.

Lingua principale
TypeScript
Stelle
730
Fork
44
Merge medio
16h 13m
PR unite (30g)
387

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 callstackincubator/simlock

Tutte le issue di callstackincubator/simlock

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.