Zen API

- Home
- Topics
- Types
- Files

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

  process | kProcess object.
  timeout | Timeout in microseconds, or kINFINITE to wait indefinitely.
  exitCode | Receives the exit code of the child. k64S_MAX in case of child termination. Can be kNULL.

Returns
  Operation status.