summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d451c6c)
This saves us from making an embarrassing `stat failed because ENOENT'
report.
if (errno != ECONNREFUSED)
die(EXIT_FAILURE, "couldn't bind to address: %s", strerror(e));
if (stat(sun.sun_path, &st)) {
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));
}
die(EXIT_FAILURE, "couldn't stat `%s': %s",
sun.sun_path, strerror(errno));
}