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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user