mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-04 13:29:51 -05:00
wayland-server: add more logging of errors
This commit is contained in:
parent
30ff420ca9
commit
4522467268
1 changed files with 2 additions and 0 deletions
|
|
@ -1196,6 +1196,7 @@ wl_display_add_socket(struct wl_display *display, const char *name)
|
|||
|
||||
size = offsetof (struct sockaddr_un, sun_path) + name_size;
|
||||
if (bind(s->fd, (struct sockaddr *) &s->addr, size) < 0) {
|
||||
wl_log("bind() failed with error: %m\n");
|
||||
close(s->fd);
|
||||
unlink(s->lock_addr);
|
||||
close(s->fd_lock);
|
||||
|
|
@ -1204,6 +1205,7 @@ wl_display_add_socket(struct wl_display *display, const char *name)
|
|||
}
|
||||
|
||||
if (listen(s->fd, 1) < 0) {
|
||||
wl_log("listen() failed with error: %m\n");
|
||||
unlink(s->addr.sun_path);
|
||||
close(s->fd);
|
||||
unlink(s->lock_addr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue