feat: implemented reparenting for backgrounded wrappers
- Introduce `detach_reparent` parameter to command execution to support process reparenting. - Add `detach_session_reparent` to Unix command extensions using a double-fork technique to orphan processes from the shell descendant tree. - Update background pipeline logic to automatically apply reparenting when unwrapping transparent wrappers like `nohup`. - Remove unused `command_is_resolvable` helper.
This commit is contained in:
@@ -53,7 +53,9 @@ async function main(): Promise<void> {
|
||||
await runCommand(["bun", "scripts/generate-docs-index.ts", "--generate"]);
|
||||
await runCommand(
|
||||
["bun", "--cwd=../natives", "run", "embed:native"],
|
||||
crossTarget ? { ...Bun.env, TARGET_PLATFORM: crossPlatform as string, TARGET_ARCH: crossArch as string } : Bun.env,
|
||||
crossTarget
|
||||
? { ...Bun.env, TARGET_PLATFORM: crossPlatform as string, TARGET_ARCH: crossArch as string }
|
||||
: Bun.env,
|
||||
);
|
||||
await runCommand(["bun", "scripts/embed-mupdf-wasm.ts", "--generate"]);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user