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



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

WaitProcess

Wait for process to terminate.

Declaration

Source position: oldlinux.pp line 1355

function WaitProcess(

  Pid: LongInt

):LongInt;

Description

WaitProcess waits for process PID to exit. WaitProcess is equivalent to the WaitPID call:

WaitPid(PID,@result,0)

Handles of Signal interrupts (errno=EINTR), and returns the Exitcode of Process PID (>=0) or -Status if it was terminated

Errors

None.

See also

WaitPID

  

Wait for a process to terminate

WTERMSIG

  

Return the signal that caused a process to exit.

WSTOPSIG

  

Return the exit code from the process.

WIFEXITED

  

Check whether the process exited normally

WIFSTOPPED

  

Check whether the process is currently stopped.

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.

WEXITSTATUS

  

Extract the exit status from the WaitPID result.

Notes

 No notes exist for this page yet. 





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