aboutsummaryrefslogtreecommitdiff
path: root/xwayland/sockets.c
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-08-23 23:19:15 +0200
committerDominique Martinet <asmadeus@codewreck.org>2017-08-24 07:51:24 +0200
commite3143b50b6363bb7408e30aa64acdbdcd9b249d9 (patch)
treececfe4fc588c797c8824cbda18389fdacbef7a11 /xwayland/sockets.c
parentfd3ad3b9e42d9f2d1196a5c36b07763283729053 (diff)
xwayland: fix some shutdown cases
Diffstat (limited to 'xwayland/sockets.c')
-rw-r--r--xwayland/sockets.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/xwayland/sockets.c b/xwayland/sockets.c
index ca46ec9f..48bcc822 100644
--- a/xwayland/sockets.c
+++ b/xwayland/sockets.c
@@ -24,7 +24,9 @@ static int open_socket(struct sockaddr_un *addr, size_t path_size) {
fd = socket(PF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0);
if (fd < 0) {
- wlr_log_errno(L_ERROR, "Failed to create socket %s", addr->sun_path);
+ wlr_log_errno(L_DEBUG, "Failed to create socket %c%s",
+ addr->sun_path[0] ? addr->sun_path[0] : '@',
+ addr->sun_path + 1);
return -1;
}
@@ -33,12 +35,16 @@ static int open_socket(struct sockaddr_un *addr, size_t path_size) {
}
if (bind(fd, (struct sockaddr*)addr, size) < 0) {
rc = errno;
- wlr_log_errno(L_ERROR, "Failed to bind socket %s", addr->sun_path);
+ wlr_log_errno(L_DEBUG, "Failed to bind socket %c%s",
+ addr->sun_path[0] ? addr->sun_path[0] : '@',
+ addr->sun_path + 1);
goto cleanup;
}
if (listen(fd, 1) < 0) {
rc = errno;
- wlr_log_errno(L_ERROR, "Failed to listen to socket %s", addr->sun_path);
+ wlr_log_errno(L_DEBUG, "Failed to listen to socket %c%s",
+ addr->sun_path[0] ? addr->sun_path[0] : '@',
+ addr->sun_path + 1);
goto cleanup;
}