projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ovs-vswitchd: Add ability to bootstrap SSL.
[openvswitch]
/
lib
/
socket-util.c
diff --git
a/lib/socket-util.c
b/lib/socket-util.c
index e6a6c70ef836b9a370bd9fffb64fc7cf3844b409..ed19013020cb8dae903ab91ec128819de6f7b57d 100644
(file)
--- a/
lib/socket-util.c
+++ b/
lib/socket-util.c
@@
-249,6
+249,7
@@
make_unix_socket(int style, bool nonblock, bool passcred UNUSED,
make_sockaddr_un(connect_path, &un, &un_len);
if (connect(fd, (struct sockaddr*) &un, un_len)
&& errno != EINPROGRESS) {
make_sockaddr_un(connect_path, &un, &un_len);
if (connect(fd, (struct sockaddr*) &un, un_len)
&& errno != EINPROGRESS) {
+ printf("connect failed with %s\n", strerror(errno));
goto error;
}
}
goto error;
}
}
@@
-265,10
+266,10
@@
make_unix_socket(int style, bool nonblock, bool passcred UNUSED,
return fd;
error:
return fd;
error:
+ error = errno == EAGAIN ? EPROTO : errno;
if (bind_path) {
fatal_signal_remove_file_to_unlink(bind_path);
}
if (bind_path) {
fatal_signal_remove_file_to_unlink(bind_path);
}
- error = errno;
close(fd);
return -error;
}
close(fd);
return -error;
}