[Overview][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'process' (#fcl)

TPROCESS.ExitStatus

Exit status of the process.

Declaration

Source position: processbody.inc line 135

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: May 14 2021