You should unlink()
the path
file before bind
call. You will get this error when file exists during the bind
. Either you should ensure to unlink/remove the file before exiting the application or you could always unlink it before bind.
Check man page of bind. Also, note the example given in the man page at the end.