Unlink the resolved path.

next
Fernando Tarlá Cardoso Lemos 2010-11-20 20:14:28 -02:00 committed by Michael Stapelberg
parent 767dcea7ba
commit e2517bd48c
1 changed files with 1 additions and 1 deletions

View File

@ -594,7 +594,7 @@ int ipc_create_socket(const char *filename) {
free(copy);
/* Unlink the unix domain socket before */
unlink(filename);
unlink(resolved);
if ((sockfd = socket(AF_LOCAL, SOCK_STREAM, 0)) < 0) {
perror("socket()");