Function glib::spawn_async_with_pipes[][src]

pub fn spawn_async_with_pipes<P: AsRef<Path>, T: FromRawFd, U: FromRawFd, V: FromRawFd>(
    working_directory: P,
    argv: &[&Path],
    envp: &[&Path],
    flags: SpawnFlags,
    child_setup: Option<Box_<dyn FnOnce() + 'static>>
) -> Result<(Pid, T, U, V), Error>
This is supported on non-Windows only.
Expand description

Identical to g_spawn_async_with_pipes_and_fds() but with n_fds set to zero, so no FD assignments are used.

working_directory

child’s current working directory, or None to inherit parent’s, in the GLib file name encoding

argv

child’s argument vector, in the GLib file name encoding

envp

child’s environment, or None to inherit parent’s, in the GLib file name encoding

flags

flags from SpawnFlags

child_setup

function to run in the child just before exec()

Returns

true on success, false if an error was set

child_pid

return location for child process ID, or None

standard_input

return location for file descriptor to write to child’s stdin, or None

standard_output

return location for file descriptor to read child’s stdout, or None

standard_error

return location for file descriptor to read child’s stderr, or None