wtermsig

Return the signal that caused a process to exit.

Declaration

Source position: bunxovlh.inc line 97

  function wtermsig(Status: cint) : cint;

Description

WTERMSIG extracts from Status the signal number which caused the process to exit.

See also

Name Description
FpWaitPID Wait for a process to terminate
WEXITSTATUS Extract the exit status from the fpWaitPID result.
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.