From: Philip Withnall Date: Thu, 15 May 2014 10:44:18 +0000 (+0100) Subject: gsocket: Document FD ownership with g_socket_new_from_fd() X-Git-Tag: 2.45.1~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b22df78221c829f89d0955eac970d73790dae4a;p=platform%2Fupstream%2Fglib.git gsocket: Document FD ownership with g_socket_new_from_fd() https://bugzilla.gnome.org/show_bug.cgi?id=730188 --- diff --git a/gio/gsocket.c b/gio/gsocket.c index 06c7235..7278e80 100644 --- 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(). *