gtestutils: Document that g_test_trap_fork () won't get close-on-exec fix

We don't want to update this function in case some crusty old third party
code might be relying on its current behavior.
Also, it is deprecated anyway and no code should be using it.
This commit is contained in:
Maciej S. Szmigiero 2023-02-19 14:47:00 +01:00 committed by Philip Withnall
parent dd36ee0abf
commit 0f5d274871

View File

@ -3858,8 +3858,9 @@ wait_for_child (GPid pid,
* Since: 2.16 * Since: 2.16
* *
* Deprecated: This function is implemented only on Unix platforms, * Deprecated: This function is implemented only on Unix platforms,
* and is not always reliable due to problems inherent in * is not always reliable due to problems inherent in fork-without-exec
* fork-without-exec. Use g_test_trap_subprocess() instead. * and doesn't set close-on-exec flag on its file descriptors.
* Use g_test_trap_subprocess() instead.
*/ */
G_GNUC_BEGIN_IGNORE_DEPRECATIONS G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gboolean gboolean