foreground-child
    Preparing search index...

    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[]]
      • Optionalcleanup: Cleanup

      Returns ChildProcessByStdio<null, null, null>

    • 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

      • program: string
      • Optionalargs: string[]
      • Optionalcleanup: Cleanup

      Returns ChildProcessByStdio<null, null, null>

    • 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

      • program: string
      • OptionalspawnOpts: SpawnOptions
      • Optionalcleanup: Cleanup

      Returns ChildProcessByStdio<null, null, null>

    • 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

      • program: string
      • Optionalargs: string[]
      • OptionalspawnOpts: SpawnOptions
      • Optionalcleanup: Cleanup

      Returns ChildProcessByStdio<null, null, null>