Commit de332a16 authored by Anthony DeRossi's avatar Anthony DeRossi Committed by Max Kellermann

event/ServerSocket: fix AF_UNIX address in use error

bind fails with an "address already in use" error if the socket path already exists. This was broken by cbb595ba.
parent 84ab3ee3
......@@ -431,6 +431,8 @@ ServerSocket::AddPath(AllocatedPath &&path, Error &error)
#ifdef HAVE_UN
(void)error;
RemoveFile(path);
AllocatedSocketAddress address;
address.SetLocal(path.c_str());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment