attempt to create xwayland x11 socket path before creating socket

This commit is contained in:
Mike Blumenkrantz 2015-06-30 15:37:56 -04:00
parent 1c59062cda
commit f046c98f59
1 changed files with 2 additions and 0 deletions

View File

@ -102,6 +102,8 @@ _abstract_socket_bind(int disp)
if ((fd = socket(PF_LOCAL, (SOCK_STREAM | SOCK_CLOEXEC), 0)) < 0)
return -1;
ecore_file_mkpath("/tmp/.X11-unix");
addr.sun_family = AF_LOCAL;
nsize = snprintf(addr.sun_path, sizeof(addr.sun_path),
"%c/tmp/.X11-unix/X%d", 0, disp);