projects
/
profile
/
ivi
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff50f6b
)
server: do not create wl_client if accept() failed
author
Pekka Paalanen
<ppaalanen@gmail.com>
Thu, 22 Mar 2012 12:24:18 +0000
(14:24 +0200)
committer
Pekka Paalanen
<ppaalanen@gmail.com>
Wed, 25 Apr 2012 06:37:42 +0000
(09:37 +0300)
Spotted during wl_os_accept_cloexec() work.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/wayland-server.c
patch
|
blob
|
history
diff --git
a/src/wayland-server.c
b/src/wayland-server.c
index
e8173fb
..
97d8918
100644
(file)
--- a/
src/wayland-server.c
+++ b/
src/wayland-server.c
@@
-906,8
+906,8
@@
socket_data(int fd, uint32_t mask, void *data)
&length);
if (client_fd < 0)
fprintf(stderr, "failed to accept, errno: %d\n", errno);
-
- wl_client_create(display, client_fd);
+ else
+
wl_client_create(display, client_fd);
return 1;
}