SubprocessLauncher.close

void close()

Closes all the file descriptors previously passed to the object with [gio.subprocess_launcher.SubprocessLauncher.takeFd], [gio.subprocess_launcher.SubprocessLauncher.takeStderrFd], etc.

After calling this method, any subsequent calls to [gio.subprocess_launcher.SubprocessLauncher.spawn] or [gio.subprocess_launcher.SubprocessLauncher.spawnv] will return [gio.types.IOErrorEnum.Closed]. This method is idempotent if called more than once.

This function is called automatically when the #GSubprocessLauncher is disposed, but is provided separately so that garbage collected language bindings can call it earlier to guarantee when FDs are closed.