aboutsummaryrefslogtreecommitdiffstats
path: root/protocol
diff options
context:
space:
mode:
authorLiu Wenlong <liuwl.fnst@cn.fujitsu.com>2019-08-26 17:08:22 +0800
committerLiu Wenlong <liuwl.fnst@cn.fujitsu.com>2019-08-27 01:32:45 +0800
commit152c9ed968124c253f0be25b76c2a083a21af37e (patch)
treec805903009b9c7070aae6344efe0ce99e8851245 /protocol
parentImprove description of wl_surface (diff)
downloadwayland-152c9ed968124c253f0be25b76c2a083a21af37e.tar
wayland-152c9ed968124c253f0be25b76c2a083a21af37e.tar.gz
wayland-152c9ed968124c253f0be25b76c2a083a21af37e.tar.bz2
wayland-152c9ed968124c253f0be25b76c2a083a21af37e.tar.lz
wayland-152c9ed968124c253f0be25b76c2a083a21af37e.tar.xz
wayland-152c9ed968124c253f0be25b76c2a083a21af37e.tar.zst
wayland-152c9ed968124c253f0be25b76c2a083a21af37e.zip
server: Fix fake "Address already in use" error
In the current workflow, socket file will be deleted if it already exists. However, if the socket file is a symbolic link and the file that it refers to doesn't exist, we will got "Address already in use" because bind() thinks the socket file exists and won't create it. Now, use lstat() to determine whether the socket file exists. Signed-off-by: Liu Wenlong <liuwl.fnst@cn.fujitsu.com>
Diffstat (limited to 'protocol')
0 files changed, 0 insertions, 0 deletions