help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Procedures and functions][Variables] Reference for unit 'Unix' (#rtl)

W_EXITCODE

Construct an exit status based on an return code and signal.

Declaration

Source position: unix.pp line 94

function W_EXITCODE(

  ReturnCode: Integer;

  Signal: Integer

):Integer;

Description

W_EXITCODE combines ReturnCode and Signal to a status code fit for WaitPid.

See also

#rtl.baseunix.FpWaitPID

  

Wait for a process to terminate

WaitProcess

  

Wait for process to terminate.

#rtl.baseunix.WTERMSIG

  

Return the signal that caused a process to exit.

#rtl.baseunix.WSTOPSIG

  

Return the exit code from the process.

#rtl.baseunix.WIFEXITED

  

Check whether the process exited normally

WIFSTOPPED

  

Check whether the process is currently stopped.

#rtl.baseunix.WIFSIGNALED

  

Check whether the process was exited by a signal.

W_EXITCODE

  

Construct an exit status based on an return code and signal.

W_STOPCODE

  

Construct an exit status based on a signal.

#rtl.baseunix.WEXITSTATUS

  

Extract the exit status from the fpWaitPID result.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505