pub unsafe extern "C" fn rb_spawn(
argc: c_int,
argv: *const VALUE,
) -> pid_tExpand description
Identical to rb_f_exec, except it spawns a child process instead of
replacing the current one.
@param[in] argc Number of objects in argv.
@param[in] argv Command and its options to execute.
@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.
@internal
ยงThis is really identical to rb_f_exec until ultimately calling the
system call. Almost everything are shared among these two (and
[rb_f_system].
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3