mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-04 13:29:51 -05:00
server: do not create wl_client if accept() failed
Spotted during wl_os_accept_cloexec() work. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
parent
ff50f6bfc4
commit
9f91feb5d9
1 changed files with 2 additions and 2 deletions
|
|
@ -906,7 +906,7 @@ socket_data(int fd, uint32_t mask, void *data)
|
||||||
&length);
|
&length);
|
||||||
if (client_fd < 0)
|
if (client_fd < 0)
|
||||||
fprintf(stderr, "failed to accept, errno: %d\n", errno);
|
fprintf(stderr, "failed to accept, errno: %d\n", errno);
|
||||||
|
else
|
||||||
wl_client_create(display, client_fd);
|
wl_client_create(display, client_fd);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue