Gio.UnixFDList.new_from_array

function new_from_array(fds: Array(Number(gint))): Gio.UnixFDList {
    // Gjs wrapper for g_unix_fd_list_new_from_array()
}
  

Creates a new Gio.UnixFDList containing the file descriptors given in fds. The file descriptors become the property of the new list and may no longer be used by the caller. The array itself is owned by the caller.

Each file descriptor in the array should be set to close-on-exec.

If n_fds is -1 then fds must be terminated with -1.

Since 2.24

fds

the initial list of file descriptors

Returns

a new Gio.UnixFDList