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:
parent
5d7bb098b9
commit
7c52de9b0a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue