pub unsafe extern "C" fn svn_io_wait_for_cmd(
cmd_proc: *mut apr_proc_t,
cmd: *const c_char,
exitcode: *mut c_int,
exitwhy: *mut apr_exit_why_e,
pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description
Wait for the process @a *cmd_proc to complete and optionally retrieve its exit code. @a cmd is used only in error messages.
If @a exitcode is not NULL, set @a *exitcode to the exit code of the process and do not consider any exit code to be an error. If @a exitcode is NULL, then if the exit code of the process is non-zero then return an #SVN_ERR_EXTERNAL_PROGRAM error.
If @a exitwhy is not NULL, set @a *exitwhy to indicate why the process terminated and do not consider any reason to be an error. If @a exitwhy is NULL, then if the termination reason is not @c APR_PROC_CHECK_EXIT() then return an #SVN_ERR_EXTERNAL_PROGRAM error.
@since New in 1.3.