unix-server: do not check for unlink() error when creating socket
The socket most likely do not exists yet.
This commit is contained in:
parent
c2af41b6b6
commit
e36f03db2d
@ -32,10 +32,7 @@ int get_server_socket(const char *socket_address)
|
|||||||
struct sockaddr_un sockname;
|
struct sockaddr_un sockname;
|
||||||
int s;
|
int s;
|
||||||
|
|
||||||
if (unlink(socket_address) < 0) {
|
unlink(socket_address);
|
||||||
printf("unlink(%s) failed\n", socket_address);
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
s = socket(AF_UNIX, SOCK_STREAM, 0);
|
s = socket(AF_UNIX, SOCK_STREAM, 0);
|
||||||
if (s < 0) {
|
if (s < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user