Skip to content

Engine → Core → process.h

process_result

Syntax

struct process_result

Variables

AccessNameTypeDefaultDescription
publicelapsedSecondsf640Seconds between the launch and the child's exit as observed by wait().
publicexitCodei320The child's exit code. process::KILLED_EXIT_CODE when it was killed by kill() or by the timeout, and also when the exit status could not be obtained (POSIX: the host ignores SIGCHLD or reaped the child itself); on POSIX a death by another signal reports the negated signal number. A child that exited on its own keeps its code even when the timeout later kills the descendants it left behind (timedOut is set in that case too).
publicstandardErrorstd::string{}Captured standard error not yet consumed through read_error(), byte for byte.
publicstandardOutputstd::string{}Captured standard output not yet consumed through read_output(), byte for byte.
publictimedOutboolfalseTrue when the child was killed because process_desc::timeoutSeconds elapsed.