Skip to content
Commit 98c2748b authored by Liu Wenlong's avatar Liu Wenlong Committed by Héctor Orón Martínez
Browse files

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: default avatarLiu Wenlong <liuwl.fnst@cn.fujitsu.com>
parent e07ef27f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment