Unit 'process' Package
[Overview][Resource strings][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TProcess.ExitStatus

Exit status of the process.

Declaration

Source position: processbody.inc line 210

public property TProcess.ExitStatus : Integer
  read GetExitStatus;

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

TProcess.Running

  

Determines whether the process is still running.

TProcess.Terminate

  

Terminate a running process.

TProcess.ExitCode

  

Exit code of the process.


Documentation generated on: Dec 27 2024