diff options
author | Michael Catanzaro <mcatanzaro@redhat.com> | 2023-08-17 14:30:27 +0000 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@redhat.com> | 2023-08-17 14:30:27 +0000 |
commit | 95baa8dcc5a08ff04188de0a7902aa0fcec2699e (patch) | |
tree | 9db7e9c2e03cab54bb3e2a0d03bc4e799890f268 | |
parent | 943972facf5dc182fc57b90af31d7010be59003c (diff) | |
parent | 15022cab15c36ef2a54b7ac3f96e6ccdc751ac0d (diff) | |
download | glib-95baa8dcc5a08ff04188de0a7902aa0fcec2699e.tar.gz |
Merge branch 'test-subprocess-docs' into 'main'
gtestutils: Mention not ignoring SIGCHLD in g_test_trap_subprocess() docs
See merge request GNOME/glib!3541
-rw-r--r-- | glib/gtestutils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/glib/gtestutils.c b/glib/gtestutils.c index 70cdc20e0..483275a0a 100644 --- a/glib/gtestutils.c +++ b/glib/gtestutils.c @@ -4067,6 +4067,11 @@ G_GNUC_END_IGNORE_DEPRECATIONS * the subprocess, you can call g_test_subprocess() (after calling * 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 * `my_object_new(1000000)` will abort with an error * message. |