mirror of
https://github.com/morluto/rea.git
synced 2026-11-20 05:32:44 +00:00
fix(process): classify every launcher failure once by errno in the shared launch owner (#11615)
* fix(process): classify every launcher failure once by errno in the shared launch owner * fix(process): keep the launch owner's syscall, cause and facts in RE and pwntools unavailable reports
This commit is contained in:
1 parent
0884836abf
commit
dbb4bc29f0
29 files changed
+712
-289
No files matched your search
@@ -38,9 +38,9 @@ import { descendantsOf, liveProcesses } from "./ProcessOwnershipProcessTree.js";
|
||||
import {
|
||||
execFileOutput,
|
||||
execFileOutputFailure,
|
||||
HOST_SPAWN_CAPACITY_CODES,
|
||||
spawnCapacityExhausted,
|
||||
} from "./ExecFileOutput.js";
|
||||
import { launchExhaustedResource } from "./launchFailure.js";
|
||||
import {
|
||||
createDarwinProcessRunTokenReader,
|
||||
DarwinProcessOwnershipInspectionError,
|
||||
@@ -1557,8 +1557,7 @@ export const createSystemProcessOwnershipHost = (
|
||||
spawnCapacityExhausted(failure) ||
|
||||
(typeof cause === "object" &&
|
||||
cause !== null &&
|
||||
typeof Reflect.get(cause, "code") === "string" &&
|
||||
HOST_SPAWN_CAPACITY_CODES.has(Reflect.get(cause, "code") as string))
|
||||
launchExhaustedResource(Reflect.get(cause, "code")) !== undefined)
|
||||
)
|
||||
throw cause;
|
||||
const rawCode =
|
||||
|
||||
Reference in new issue
Block a user