Skip to content

TProcess.ExitStatus

Exit status of the process.

Declaration

Source position: processbody.inc line 211

public property ExitStatus: Integer;

Description

ExitStatus contains the exit status as reported by the OS for the process when it stopped executing: Normally, this is the exit code of the process.

The value of this property is only meaningful when the process has finished executing. If it is not yet running then the value is -1. (it was zero in earlier versions of FPC)

See also

Name Description
TProcess.Running Determines whether the process is still running.
TProcess.Terminate Terminate a running process.
TProcess.ExitCode Exit code of the process.