Function foregroundChild

  • Spawn the specified program as a "foreground" process, or at least as close as is possible given node's lack of exec-without-fork.

    Cleanup method may be used to modify or ignore the result of the child's exit code or signal. If cleanup returns undefined (or a Promise that resolves to undefined), then the parent will exit in the same way that the child did.

    Return boolean false to prevent the parent's exit entirely.

    Parameters

    • cmd: string | [cmd: string, ...args: string[]]
    • Optional cleanup: Cleanup

    Returns ChildProcessByStdio<null, null, null>

  • Parameters

    • program: string
    • Optional args: string[]
    • Optional cleanup: Cleanup

    Returns ChildProcessByStdio<null, null, null>

  • Parameters

    • program: string
    • Optional spawnOpts: SpawnOptions
    • Optional cleanup: Cleanup

    Returns ChildProcessByStdio<null, null, null>

  • Parameters

    • program: string
    • Optional args: string[]
    • Optional spawnOpts: SpawnOptions
    • Optional cleanup: Cleanup

    Returns ChildProcessByStdio<null, null, null>

Generated using TypeDoc