Skip to content
Snippets Groups Projects
Commit 8b4f212e authored by Simon McVittie's avatar Simon McVittie
Browse files

SrtSystemInfo: Document that we need SIGCHLD

parent af26fde6
No related branches found
No related tags found
1 merge request!93Unblock SIGCHLD when spawning subprocesses
......@@ -66,6 +66,14 @@
* Other threads may create their own parallel #SrtSystemInfo object and
* use that instead, if desired.
*
* The majority of the #SrtSystemInfo API involves child processes, and
* requires `SIGCHLD` to be handled (somehow) by the host process:
* `SIGCHLD` must not have been ignored (by `sigaction(2)` with `SIG_IGN`)
* or blocked (for example with `sigprocmask(2)`) in the thread that is
* acting on the #SrtSystemInfo. If this cannot be guaranteed, please run
* `steam-runtime-system-info(1)` as a child process and inspect its
* JSON output instead of calling library functions directly.
*
* Ownership can be transferred to other threads by an operation that
* implies a memory barrier, such as g_atomic_pointer_set() or
* g_object_ref(), but after this is done the previous owner must not
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment