fix(process): cancel run-token reads during sampling
Propagate the sample AbortSignal through readProcessRunId to host environment inspection so cancellation can settle a blocked ownership-token read. Validation: ownership and capture lifecycle suites pass, including an abort-waiting host regression. Native provider runtime behavior was not exercised.
This commit is contained in:
@@ -358,7 +358,7 @@ const inspectInitializedPtyRoot = async (
|
||||
return undefined;
|
||||
let observedRunId: string | undefined;
|
||||
try {
|
||||
observedRunId = await readProcessRunId(rootPid);
|
||||
observedRunId = await readProcessRunId(rootPid, undefined, signal);
|
||||
} catch (cause: unknown) {
|
||||
// Unreadable run identity means the root cannot be attributed.
|
||||
void cause;
|
||||
|
||||
Reference in New Issue
Block a user