2
0
mirror of https://github.com/openvswitch/ovs synced 2025-09-05 00:35:33 +00:00

ovs-ofctl: Don't rely on stat() to check unix sockets.

ESX supports unix sockets, but they don't manifest themselves in
file system like they do on Linux.  Instead of using stat to check
if a unix socket exist, this patch simply tries to open it instead.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
Ethan Jackson
2012-10-10 13:33:54 -07:00
parent c423da59a8
commit c3f2538933
2 changed files with 26 additions and 16 deletions

View File

@@ -48,7 +48,7 @@ unix_open(const char *name, char *suffix, struct stream **streamp,
fd = make_unix_socket(SOCK_STREAM, true, NULL, connect_path);
if (fd < 0) {
VLOG_WARN("%s: connection failed (%s)", connect_path, strerror(-fd));
VLOG_DBG("%s: connection failed (%s)", connect_path, strerror(-fd));
return -fd;
}