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:
Mikhail Zabaluev 2014-10-05 21:04:00 +03:00 committed by Philip Withnall
parent 48cf1d32c6
commit e5db8ec787

View File

@ -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