1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

socket: do not fail if stale socket does not exist

This commit is contained in:
Steffen Vogel 2017-10-27 21:46:40 +02:00
parent 5d7bb098b9
commit 7c52de9b0a

View file

@ -216,7 +216,7 @@ int socket_start(struct node *n)
socklen_t addrlen = 0;
if (s->layer == SOCKET_LAYER_UNIX) {
ret = unlink(s->local.sun.sun_path);
if (ret)
if (ret && errno != ENOENT)
return ret;
addrlen = SUN_LEN(&s->local.sun);