mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-16 12:28:48 +02:00
gmain: Document that g_steal_fd() preserves errno
This is useful when writing similarly low-level code, and was always true as implemented here; let's document it so that other codebases can rely on it. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
32ec11e51d
commit
c97348428f
@ -6608,6 +6608,8 @@ g_get_worker_context (void)
|
|||||||
* [`signal-safety(7)`](man:signal-safety(7))), making it safe to call from a
|
* [`signal-safety(7)`](man:signal-safety(7))), making it safe to call from a
|
||||||
* signal handler or a #GSpawnChildSetupFunc.
|
* signal handler or a #GSpawnChildSetupFunc.
|
||||||
*
|
*
|
||||||
|
* This function preserves the value of `errno`.
|
||||||
|
*
|
||||||
* Returns: the value that @fd_ptr previously had
|
* Returns: the value that @fd_ptr previously had
|
||||||
* Since: 2.70
|
* Since: 2.70
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user