Skip to content

SpawnOpts

Defined in: packages/core/src/kernel/types.ts:1266

Options for spawning a child process.

All fields are optional. Omitted stream fields inherit the parent’s fd 0/1/2 by dup. A numeric value for stdin/stdout/stderr refers to the PARENT’S fd table (dup semantics); a Readable/Writable object is taken as the stream itself. env, when present, is MERGED into the parent’s env rather than replacing it.

optional cwd?: string

Defined in: packages/core/src/kernel/types.ts:1271


optional env?: Record<string, string>

Defined in: packages/core/src/kernel/types.ts:1270


optional ns?: Namespace

Defined in: packages/core/src/kernel/types.ts:1275

Override namespace for spawn (nsenter: parent kernel + child namespace).


optional stderr?: Writable | FdNumber

Defined in: packages/core/src/kernel/types.ts:1269


optional stdin?: Readable | FdNumber

Defined in: packages/core/src/kernel/types.ts:1267


optional stdout?: Writable | FdNumber

Defined in: packages/core/src/kernel/types.ts:1268


optional worker?: boolean

Defined in: packages/core/src/kernel/types.ts:1272

optional getTermSize(): TerminalSize

Defined in: packages/core/src/kernel/types.ts:1273

TerminalSize