[dpdk-dev] [PATCH] test whether file descriptor is valid before close it

2015-03-09 Thread Tetsuya Mukawa
On 2015/03/06 20:05, Huawei Xie wrote: > This avoids closing -1 in our case. > > Signed-off-by: Huawei Xie > --- > lib/librte_vhost/virtio-net.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c > index

[dpdk-dev] [PATCH] test whether file descriptor is valid before close it

2015-03-09 Thread Thomas Monjalon
> > This avoids closing -1 in our case. > > > > Signed-off-by: Huawei Xie > > Acked-by: Changchun Ouyang Applied, thanks

[dpdk-dev] [PATCH] test whether file descriptor is valid before close it

2015-03-09 Thread Ouyang, Changchun
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Huawei Xie > Sent: Friday, March 6, 2015 7:06 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] test whether file descriptor is valid before close > it > > This avoids closing -1

[dpdk-dev] [PATCH] test whether file descriptor is valid before close it

2015-03-06 Thread Huawei Xie
This avoids closing -1 in our case. Signed-off-by: Huawei Xie --- lib/librte_vhost/virtio-net.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index 6917fcf..4672e67 100644 ---