2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

socket-util: closesocket() for Windows.

For Windows sockets, one has to call closesocket() to
close the sockets.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Gurucharan Shetty
2014-02-18 15:09:18 -08:00
parent 99ad8ba8ce
commit 7009a5941e
3 changed files with 6 additions and 4 deletions

View File

@@ -810,7 +810,7 @@ exit:
memset(ssp, 0, sizeof *ssp);
}
if (fd >= 0) {
close(fd);
closesocket(fd);
fd = -1;
}
} else {
@@ -958,7 +958,7 @@ error:
if (ssp) {
memset(ssp, 0, sizeof *ssp);
}
close(fd);
closesocket(fd);
return -error;
}