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

TProcess.ExitStatus

Exit status of the process.

Declaration

Source position: process.pp line 133

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 wheter the process is still running.

TProcess.Terminate

  

Terminate a running process

TProcess.ExitCode

  

Exit code of the process


Documentation generated on: Sep 28 2017