Skip to content
FutureBlitz

    Install

    Import std.os.process_child

    Child

    std.os.process_child

    class

    Public Class Child

    A program that a Command started, which runs beside this one until it ends, whether or not this program waits for it. Letting go of it, and of its streams, closes its pipes, but doesn't end it.

    std/os/process_child.fb, line 77

    • Public ReadOnly Field Stdin: ChildInput? field #

      Its stdin, when the Command piped it, a Writer to what the child reads.

    • Public ReadOnly Field Stdout: ChildOutput? field #

      Its stdout, when the Command piped it, a Reader of what the child writes there.

    • Public ReadOnly Field Stderr: ChildOutput? field #

      Its stderr, when the Command piped it.

    • Public Property Id: Int64 property #

      The OS's number for its process.

    • Public Method Wait(): ExitStatus method #

      Waits for it to end, and gives how it did. Its stdin closes first, so a child that reads to its end doesn't wait for more.

    • Public Async Method WaitAsync(): ExitStatus method #

      Wait's Async twin, which waits on the main thread instead of blocking it.

    • Public Method TryWait(): ExitStatus? method #

      How it ended, or Null while it runs.

    • Public Method Kill() Throws IOError method #

      Ends it at once, unless it's ended already: by SIGKILL, or on Windows TerminateProcess, either way with Signal 9. Throws an IOError when the OS won't.

    Report an issue with this page or with FutureBlitz on GitHub.