Interface ProcessOptions

Options for configuring processes

interface ProcessOptions {
    args?: string[];
    code?: number;
    command?: string;
    cwd?: string;
    entry?: (params: ProcessEntryParams) => Promise<undefined | number | void>;
    gid: number;
    kernel?: Kernel;
    parent?: number;
    shell?: Shell;
    status?: ProcessStatus;
    stderr?: WritableStream<Uint8Array>;
    stdin?: ReadableStream<Uint8Array>;
    stdout?: WritableStream<Uint8Array>;
    terminal?: Terminal;
    uid: number;
}

Properties

args?: string[]

Command line arguments

code?: number

Exit code

command?: string

Command name

cwd?: string

Working directory

entry?: (params: ProcessEntryParams) => Promise<undefined | number | void>

Process entry point

gid: number

Group ID

kernel?: Kernel

Reference to kernel instance

parent?: number

Parent process ID

shell?: Shell

Reference to shell instance

status?: ProcessStatus

Process status

Standard error stream

Standard input stream

Standard output stream

terminal?: Terminal

Reference to terminal instance

uid: number

User ID