Function rb_spawn_err

Source
pub unsafe extern "C" fn rb_spawn_err(
    argc: c_int,
    argv: *const VALUE,
    errbuf: *mut c_char,
    buflen: size_t,
) -> pid_t
Expand description

Identical to rb_spawn, except you can additionally know the detailed situation in case of abnormal parturitions.

ยง@param[in] argc Number of objects in argv. @param[in] argv Command and its options to execute. @param[out] errbuf Error description write-back buffer. @param[in] buflen Number of bytes of errbuf, including NUL. @exception rb_eTypeError Invalid options e.g. non-String argv. @exception rb_eArgError Invalid options e.g. redirection cycle. @exception rb_eNotImpError Not implemented e.g. no setuid(2). @exception rb_eRuntimeError Process::UID.switch in operation. @retval -1 Child process died for some reason. @retval otherwise The ID of the born child. @post In case of -1, at most buflen bytes of the reason why is written back to errbuf.

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3