mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
server: Clarify fd ownership in wl_client_create()
It's unclear whether one needs to call close() if wl_client_create() fails. Hopefully this change makes it more clear. Signed-off-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
This commit is contained in:
parent
f870320958
commit
17965d99e8
1 changed files with 5 additions and 0 deletions
|
|
@ -520,6 +520,11 @@ bind_display(struct wl_client *client, struct wl_display *display);
|
||||||
*
|
*
|
||||||
* On failure this function sets errno accordingly and returns NULL.
|
* On failure this function sets errno accordingly and returns NULL.
|
||||||
*
|
*
|
||||||
|
* On success, the new client object takes the ownership of the file
|
||||||
|
* descriptor. On failure, the ownership of the socket endpoint file
|
||||||
|
* descriptor is unchanged, it is the responsibility of the caller to
|
||||||
|
* perform cleanup, e.g. call close().
|
||||||
|
*
|
||||||
* \memberof wl_display
|
* \memberof wl_display
|
||||||
*/
|
*/
|
||||||
WL_EXPORT struct wl_client *
|
WL_EXPORT struct wl_client *
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue