chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
server/admin.c (a_listen): If stat(2) says the socket has gone, then retry.
[tripe]
/
server
/
admin.c
diff --git
a/server/admin.c
b/server/admin.c
index acdb973af784bfa0899d444554485c53f7a81720..6ff141876f3976c080a1f55bc72be21d5fb44b7d 100644
(file)
--- a/
server/admin.c
+++ b/
server/admin.c
@@
-2538,6
+2538,7
@@
again:
if (errno != ECONNREFUSED)
die(EXIT_FAILURE, "couldn't bind to address: %s", strerror(e));
if (stat(sun.sun_path, &st)) {
+ if (errno == ENOENT) { close(fd); goto again; }
die(EXIT_FAILURE, "couldn't stat `%s': %s",
sun.sun_path, strerror(errno));
}