]> git.proxmox.com Git - ovs.git/commit
collectors: Use closesocket() to close sockets.
authorGurucharan Shetty <gshetty@nicira.com>
Mon, 27 Jul 2015 20:41:31 +0000 (13:41 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Mon, 27 Jul 2015 22:34:50 +0000 (15:34 -0700)
commit6767b5ec7553a2635931bfdc9c9af2fff80d0f92
treeaaef9ee0dfd8372dca672a2e9df00519025d4759
parenta45475400a44065efb8667f0ef2e3de91ed31ca0
collectors: Use closesocket() to close sockets.

We should use closesocket() while closing sockets so that
closing sockets work fine on both POSIX and Windows.
(In POSIX, we #define closesocket close)

Without this change, sflow unit tests would cause ovs-vswitchd
to crash in Windows.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/collectors.c