[][src]Function simple_libc::exec::fexecve

pub fn fexecve<U: AsRef<OsStr>, V: AsRef<OsStr>>(
    fd: Int,
    argv: &[U],
    env: &[V]
) -> Result<()>

Attempts to execute the given program with the given arguments and the given environment, replacing the current process. This variant of exec does not perform a PATH lookup, so a full path should be specified.

This varient of exec, rather than accepting a path or a program name, accepts a file descriptor specifying the program to be executed.

If this function returns, it means an error occurred.