ForkProcessOptions
ForkProcessOptions =
object
Defined in: packages/node/src/process/fork-process.ts:18
Properties
Section titled “Properties”
readonlyoptionalargs?: readonlystring[] |null
Defined in: packages/node/src/process/fork-process.ts:19
readonlyoptionalcwd?:string|null
Defined in: packages/node/src/process/fork-process.ts:21
readonlyoptionalenv?:NodeJS.ProcessEnv|null
Defined in: packages/node/src/process/fork-process.ts:23
execArgv?
Section titled “execArgv?”
readonlyoptionalexecArgv?: readonlystring[] |null
Defined in: packages/node/src/process/fork-process.ts:25
graceMs?
Section titled “graceMs?”
readonlyoptionalgraceMs?:number|null
Defined in: packages/node/src/process/fork-process.ts:52
Default 5000.
onMessage?
Section titled “onMessage?”
readonlyoptionalonMessage?:Callable<[unknown]> |null
Defined in: packages/node/src/process/fork-process.ts:49
Pre-subscribed before the child can send anything.
onOutput?
Section titled “onOutput?”
readonlyoptionalonOutput?:Callable<[ProcessOutputStream,string]> |null
Defined in: packages/node/src/process/fork-process.ts:44
Pre-subscribed before the child can write anything.
serialization?
Section titled “serialization?”
readonlyoptionalserialization?:"json"|"advanced"|null
Defined in: packages/node/src/process/fork-process.ts:28
Default "advanced" — structured clone, so Uint8Array/BigInt survive.
signal?
Section titled “signal?”
readonlyoptionalsignal?:AbortSignal|null
Defined in: packages/node/src/process/fork-process.ts:31
Aborting terminates the child (SIGTERM, then SIGKILL after graceMs).
stderr?
Section titled “stderr?”
readonlyoptionalstderr?:ProcessStdio|null
Defined in: packages/node/src/process/fork-process.ts:41
Default "inherit", or "pipe" when onOutput is given.
stdout?
Section titled “stdout?”
readonlyoptionalstdout?:ProcessStdio|null
Defined in: packages/node/src/process/fork-process.ts:38
Default "inherit", or "pipe" when onOutput is given. output events
only ever carry a piped stream. IPC uses its own fd, so nothing the child
prints can corrupt it.