提交 4358f76a 编写于 作者: S Soren Hansen 提交者: Eric Blake

Close fd's of persistent tap devices

When passing a NULL tapfd argument to brAddTap, we need to close the fd
of the tap device. If we don't, libvirt will keep the fd open
indefinitely and renders the the guest unable to configure its side of
the tap device.
Signed-off-by: NSoren Hansen <soren@linux2go.dk>
上级 3ad8cbd3
......@@ -538,6 +538,8 @@ brAddTap(brControl *ctl,
goto error;
if (tapfd)
*tapfd = fd;
else
close(fd);
return 0;
error:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册