Function gnunet_sys::GNUNET_OS_start_process_s[][src]

pub unsafe extern "C" fn GNUNET_OS_start_process_s(
    std_inheritance: GNUNET_OS_InheritStdioFlags,
    lsocks: *const c_int,
    filename: *const c_char,
     ...
) -> *mut GNUNET_OS_Process

Start a process. This function is similar to the GNUNET_OS_start_process_* except that the filename and arguments can have whole strings which contain the arguments. These arguments are to be separated by spaces and are parsed in the order they appear. Arguments containing spaces can be used by quoting them with @em “.

@param std_inheritance a set of GNUNET_OS_INHERIT_STD_* flags @param lsocks array of listen sockets to dup systemd-style (or NULL); must be NULL on platforms where dup is not supported @param filename name of the binary. It is valid to have the arguments in this string when they are separated by spaces. @param … more arguments. Should be of type char *. It is valid to have the arguments in these strings when they are separated by spaces. The last argument MUST be NULL. @return pointer to process structure of the new process, NULL on error