mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 09:28:54 +02:00
Merge branch 'test-subprocess-docs' into 'main'
gtestutils: Mention not ignoring SIGCHLD in g_test_trap_subprocess() docs See merge request GNOME/glib!3541
This commit is contained in:
@@ -4067,6 +4067,11 @@ G_GNUC_END_IGNORE_DEPRECATIONS
|
|||||||
* the subprocess, you can call g_test_subprocess() (after calling
|
* the subprocess, you can call g_test_subprocess() (after calling
|
||||||
* g_test_init()) to see whether you are in a subprocess.
|
* g_test_init()) to see whether you are in a subprocess.
|
||||||
*
|
*
|
||||||
|
* Internally, this function tracks the child process using
|
||||||
|
* g_child_watch_source_new(), so your process must not ignore `SIGCHLD`, and
|
||||||
|
* must not attempt to watch or wait for the child process via another
|
||||||
|
* mechanism.
|
||||||
|
*
|
||||||
* The following example tests that calling
|
* The following example tests that calling
|
||||||
* `my_object_new(1000000)` will abort with an error
|
* `my_object_new(1000000)` will abort with an error
|
||||||
* message.
|
* message.
|
||||||
|
Reference in New Issue
Block a user