projects
/
platform
/
core
/
uifw
/
pepper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52af6f8
)
compositor: Do not close socket_fd given from outside
84/299284/1
author
Seunghun Lee
<shiin.lee@samsung.com>
Mon, 25 Sep 2023 07:21:43 +0000
(16:21 +0900)
committer
Seunghun Lee
<shiin.lee@samsung.com>
Mon, 25 Sep 2023 07:32:54 +0000
(16:32 +0900)
Let the caller close it to prevent from double close.
Change-Id: I402b651e8566ebf5f888b21e2324985e080c897a
src/lib/pepper/compositor.c
patch
|
blob
|
history
diff --git
a/src/lib/pepper/compositor.c
b/src/lib/pepper/compositor.c
index
345c07b
..
a12d04d
100644
(file)
--- a/
src/lib/pepper/compositor.c
+++ b/
src/lib/pepper/compositor.c
@@
-159,12
+159,10
@@
compositor_bind_socket(pepper_compositor_t *compositor, int socket_fd,
size = offsetof(struct sockaddr_un, sun_path) + name_size;
if (bind(socket_fd, (struct sockaddr *) &compositor->addr, size) < 0) {
PEPPER_ERROR("failed to bind to %s: %m\n", compositor->addr.sun_path);
- close(socket_fd);
return PEPPER_FALSE;
}
if (listen(socket_fd, 1) < 0) {
- close(socket_fd);
return PEPPER_FALSE;
}