Skip to content

wexitStatus

Extract the exit status from the fpWaitPID result.

Declaration

Source position: bunxovlh.inc line 94

  function wexitStatus(Status: cint) : cint;

Description

WEXITSTATUS can be used to extract the exit status from Status, the result of the FpWaitPID call.

See also

Name Description
FpWaitPID Wait for a process to terminate
WIFEXITED Check whether the process exited normally
WIFSIGNALED Check whether the process was exited by a signal.
WSTOPSIG Return the exit code from the process.
WTERMSIG Return the signal that caused a process to exit.