Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kProcess_Wait ( kProcess  process,
k64u  timeout,
k64s exitCode 
)

Waits for child process completion, otherwise terminates child after the timeout.

The exit code parameter receives the exit code of the child. If the child was terminated or in case of an error the exit code becomes k64S_MAX.

Parameters
processkProcess object.
timeoutTimeout in microseconds, or kINFINITE to wait indefinitely.
exitCodeReceives the exit code of the child. k64S_MAX in case of child termination. Can be kNULL.
Returns
Operation status.