numam-spdk/module
Zhiqiang Liu b4226d6f99 posix: set fd to -1 after close(fd) in posix_sock_create()
In posix_sock_create(), we loops through all the addresses available.
If something is wrong, we should close(fd) and set fd to -1, and
try the next address. Only, when one fd satisfies all conditions,
we will break the loop with the useful fd.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Change-Id: Icbfc10246c92b95cacd6eb058e6e46cf8924fc4c
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8310
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ziye Yang <ziye.yang@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
2021-06-17 09:18:08 +00:00
..
accel module/idxd: add support for copy + crc to idxd engine module 2021-06-09 07:26:00 +00:00
bdev bdev/nvme: enable write zeroes split support in bdev layer 2021-06-17 09:00:05 +00:00
blob module/blob/bdev: use __SPDK_BDEV_MODULE_ONLY 2021-05-11 11:57:01 +00:00
blobfs blobfs: check return value of strdup in blobfs_fuse_start() 2021-06-16 08:53:21 +00:00
env_dpdk so_ver: increase all major versions 2021-02-05 14:43:47 +00:00
event nvmf: allow poll groups to run on a subset of cores 2021-06-08 08:27:37 +00:00
sock posix: set fd to -1 after close(fd) in posix_sock_create() 2021-06-17 09:18:08 +00:00
Makefile build: install generated pkg-config files 2021-03-17 11:10:45 +00:00