mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Skip g_subprocess_launcher_set_child_setup() in introspection
It's not likely that the runtime of a bound language using the introspection supports running in a process forked by a foreign library, so that a closure programmed in that language would work safely. Any programming environment supporting that would probably have its own advanced facilities for process spawning, or be able to access the GLib spawning APIs via raw C bindings (still represented in the introspection, (skip) only adds a flag) and do any low-level preparatory dances as necessary for the forked runtime. Note that there are other APIs making use of GSpawnChildSetupFunc, but they are usable with the closure nullified, and we cannot annotate the closure parameters away because that would break the annotated API for bindings; accordingly to bug #738176 comment #3, the current bindings' users are expected to pass null.
This commit is contained in:
parent
48cf1d32c6
commit
e5db8ec787
@ -640,7 +640,7 @@ g_subprocess_launcher_take_fd (GSubprocessLauncher *self,
|
||||
}
|
||||
|
||||
/**
|
||||
* g_subprocess_launcher_set_child_setup:
|
||||
* g_subprocess_launcher_set_child_setup: (skip)
|
||||
* @self: a #GSubprocessLauncher
|
||||
* @child_setup: a #GSpawnChildSetupFunc to use as the child setup function
|
||||
* @user_data: user data for @child_setup
|
||||
|
Loading…
Reference in New Issue
Block a user