wayland bug back port: Fix fake "Address already in use" error

Description

in wayland, there is a bug as  bellow, the bug may effects application's start(start fail)

so it's better to back port the bug's modify to AGL. 

--------------

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.

--------------

Modify address: https://github.com/wayland-project/wayland/commit/152c9ed968124c253f0be25b76c2a083a21af37e

 

Environment

Graphics images use wayland

Activity

Show:

Walt Miner October 14, 2019 at 7:48 PM

Close for HH 8.0.1

 

 

Fixed

Details

Assignee

Zhou Mingying

Reporter

Time tracking

1d logged

Components

Affects versions

Priority

Created August 30, 2019 at 5:55 AM
Updated October 14, 2019 at 7:48 PM
Resolved October 14, 2019 at 1:24 AM
Loading...