unix-server: do not check for unlink() error when creating socket

The socket most likely do not exists yet.
This commit is contained in:
Marek Marczykowski-Górecki 2014-01-07 00:27:57 +01:00
parent c2af41b6b6
commit e36f03db2d

View File

@ -32,10 +32,7 @@ int get_server_socket(const char *socket_address)
struct sockaddr_un sockname;
int s;
if (unlink(socket_address) < 0) {
printf("unlink(%s) failed\n", socket_address);
exit(1);
}
unlink(socket_address);
s = socket(AF_UNIX, SOCK_STREAM, 0);
if (s < 0) {