wayland bug backport: Fix fake "Address already in use" error 77/22277/4
authorZhou Mingying <zhoumy@cn.fujitsu.com>
Fri, 30 Aug 2019 06:14:36 +0000 (14:14 +0800)
committerScott Murray <scott.murray@konsulko.com>
Wed, 4 Sep 2019 00:40:48 +0000 (00:40 +0000)
commit024fc5df0079343e1a609009f3f62bd5b96324ff
tree0d55dcfe2561d328d3fdedea10c65e1428b55788
parentdd21b3a6e340006d2ef4036cabf33c9e9a66e9ac
wayland bug backport: Fix fake "Address already in use" error

Backport a bug modification to the wayland used by AGL,
because the bug may effect the applications start error

The bug modification detail is as bellow:
In the current workflow, socket file will be deleted if it already exists.
However, if the socket file is a symbolic link or the file that it refers
to not 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.

Bug-AGL: SPEC-2783

Signed-off-by: Zhou Mingying <zhoumy@cn.fujitsu.com>
Change-Id: Iff2c7abefa56104eef49ae7102ee8a1de796b813
meta-agl-profile-graphical/recipes-graphics/wayland/wayland/0002-server-Fix-fake-Address-already-in-use-error.patch [new file with mode: 0644]
meta-agl-profile-graphical/recipes-graphics/wayland/wayland_%.bbappend