Interface ProcessState

ProcessState stores information about a process, as reported by Wait.

Hierarchy

  • ProcessState

Methods

  • ExitCode returns the exit code of the exited process, or -1 if the process hasn't exited or was terminated by a signal.

    Returns number

  • Exited reports whether the program has exited. On Unix systems this reports true if the program exited due to calling exit, but false if the program terminated due to a signal.

    Returns boolean

  • Pid returns the process id of the exited process.

    Returns number

  • Success reports whether the program exited successfully, such as with exit status 0 on Unix.

    Returns boolean

  • Sys returns system-dependent exit information about the process. Convert it to the appropriate underlying type, such as [syscall.WaitStatus] on Unix, to access its contents.

    Returns any

  • SysUsage returns system-dependent resource usage information about the exited process. Convert it to the appropriate underlying type, such as [*syscall.Rusage] on Unix, to access its contents. (On Unix, *syscall.Rusage matches struct rusage as defined in the getrusage(2) manual page.)

    Returns any

Generated using TypeDoc