Interface Process

Interface for process functionality

interface Process {
    args: string[];
    code?: number;
    command: string;
    cwd: string;
    entry: (params: ProcessEntryParams) => Promise<undefined | number | void>;
    events: any;
    gid: number;
    kernel: Kernel;
    parent?: number;
    pid: number;
    shell: Shell;
    status: ProcessStatus;
    stderr: WritableStream<Uint8Array>;
    stdin: ReadableStream<Uint8Array>;
    stdout: WritableStream<Uint8Array>;
    terminal: Terminal;
    uid: number;
    cleanup(): Promise<void>;
    exit(exitCode?: number): Promise<void>;
    pause(): void;
    restart(): void;
    resume(): void;
    start(): Promise<number>;
    stop(exitCode?: number): Promise<void>;
}

Properties

args: string[]

Get command line arguments

code?: number

Get exit code

command: string

Get command name

cwd: string

Get working directory

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

Get process entry point

events: any

Get event emitter

gid: number

Get group ID

kernel: Kernel

Get kernel instance

parent?: number

Get/set parent process ID

pid: number

Get process ID

shell: Shell

Get shell instance

Get process status

Get standard error stream

Get standard input stream

Get standard output stream

terminal: Terminal

Get terminal instance

uid: number

Get user ID

Methods