Back to Pocketbase

Interface ProcessState

static/jsvm/interfaces/os.ProcessState.html

latest2.6 KB
Original Source

Interface ProcessState

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

Hierarchy

  • ProcessState

Index

Methods

exitCodeexitedpidstringsuccesssyssysUsagesystemTimeuserTime

Methods

exitCode

  • exitCode(): number

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

  • exited(): boolean

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

  • pid(): number

Pid returns the process id of the exited process.

Returns number

string

  • string(): string

Returns string

success

  • success(): boolean

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

Returns boolean

sys

  • sys(): any

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

  • sysUsage(): 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

systemTime

SystemTime returns the system CPU time of the exited process and its children.

Returns Duration

userTime

UserTime returns the user CPU time of the exited process and its children.

Returns Duration

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc