ovs-ofctl: Don't rely on stat() to check unix sockets.
authorEthan Jackson <ethan@nicira.com>
Wed, 10 Oct 2012 20:33:54 +0000 (13:33 -0700)
committerEthan Jackson <ethan@nicira.com>
Tue, 20 Nov 2012 22:41:04 +0000 (14:41 -0800)
commitc3f2538933e2a7663283158a8bf806bf66ac1a23
tree325341a1a94ae67d886c677f3dc98556abe5d3e9
parentc423da59a8e0d605dfdea7b9bd4c42eb2eba8885
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>
lib/stream-unix.c
utilities/ovs-ofctl.c