You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2665364
Browse filesBrowse the repository at this point in the historyBrowse files
fix(exec): forward SIGHUP and SIGQUIT so a hung-up terminal stops the build too
The child leads its own session, so terminal hangup reached only the wrapper
and its default action killed it before the release: the claim named a dead
pid while the build kept mutating the device. attachSignalForwarding now owns
one list of forwarded signals (SIGINT, SIGTERM, SIGHUP, SIGQUIT), registers
and disposes every handler from it, and replays all signals received before
the child existed. The claim is released only after the child exits.
- exec tests: real-process SIGHUP case (fails on the previous code: wrapper
killed, claim stranded, child alive) asserting release-before-exit, the
child group stopping, and exit 129.
- help and docs name the full forwarded set.
- delete the dead outcome assignment in releaseExecDeviceClaim.
- fix the stale device-claim-conflict.ts path in the help-conformance sample.
summary: 'Run a command while holding the device claim',
74
74
description:
75
-
'Hold the host-local exclusive device claim for the selected local device for the whole lifetime of an external command, so a build that installs or reinstalls through the platform tools directly (expo run:ios, xcodebuild, adb install) is fenced against agent-device sessions on that device. Refuses to start while another session or wrapper holds the claim, forwards SIGINT/SIGTERM to the command, exits with its exit code, and attempts to release the claim on every exit path; a release that fails leaves a claim that device release --stale reports. A killed wrapper leaves a claim that the next acquirer reconciles once its owner is proven dead. Claims cover local devices of every platform family, never provider-leased cloud devices. macOS and Linux hosts only.',
75
+
'Hold the host-local exclusive device claim for the selected local device for the whole lifetime of an external command, so a build that installs or reinstalls through the platform tools directly (expo run:ios, xcodebuild, adb install) is fenced against agent-device sessions on that device. Refuses to start while another session or wrapper holds the claim, forwards SIGINT, SIGHUP, SIGQUIT and SIGTERM to the command, exits with its exit code, and attempts to release the claim on every exit path; a release that fails leaves a claim that device release --stale reports. A killed wrapper leaves a claim that the next acquirer reconciles once its owner is proven dead. Claims cover local devices of every platform family, never provider-leased cloud devices. macOS and Linux hosts only.',
0 commit comments