projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73d72a7
)
gsocket: Document FD ownership with g_socket_new_from_fd()
author
Philip Withnall
<philip.withnall@collabora.co.uk>
Thu, 15 May 2014 10:44:18 +0000
(11:44 +0100)
committer
Dan Winship
<danw@gnome.org>
Sat, 21 Mar 2015 17:37:30 +0000
(13:37 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=730188
gio/gsocket.c
patch
|
blob
|
history
diff --git
a/gio/gsocket.c
b/gio/gsocket.c
index
06c7235
..
7278e80
100644
(file)
--- a/
gio/gsocket.c
+++ b/
gio/gsocket.c
@@
-1057,6
+1057,9
@@
g_socket_new (GSocketFamily family,
* will be set to non-blocking mode, independent on the blocking
* mode of the #GSocket.
*
+ * On success, the returned #GSocket takes ownership of @fd. On failure, the
+ * caller must close @fd themselves.
+ *
* Returns: a #GSocket or %NULL on error.
* Free the returned object with g_object_unref().
*