[ovs-git] [openvswitch/ovs] 6767b5: collectors: Use closesocket() to close sockets.

GitHub noreply at github.com
Mon Jul 27 22:35:47 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 6767b5ec7553a2635931bfdc9c9af2fff80d0f92
      https://github.com/openvswitch/ovs/commit/6767b5ec7553a2635931bfdc9c9af2fff80d0f92
  Author: Gurucharan Shetty <gshetty at nicira.com>
  Date:   2015-07-27 (Mon, 27 Jul 2015)

  Changed paths:
    M ofproto/collectors.c

  Log Message:
  -----------
  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 at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>




More information about the git mailing list