]> Git Repo - qemu.git/commit
tap: do not close(fd) in net_init_tap_one
authorGonglei <[email protected]>
Fri, 31 Oct 2014 06:11:00 +0000 (14:11 +0800)
committerMichael Tokarev <[email protected]>
Sun, 2 Nov 2014 07:05:32 +0000 (10:05 +0300)
commitd0caa3eb539de01043354440ce0a10b1f546cf06
treeac94d61066bd5c3ddca6f080a2d2166377894262
parentbb019cf911ee4a152e3b31940d702d7b8a8b8114
tap: do not close(fd) in net_init_tap_one

commit 5193e5fb (tap: factor out common tap initialization)
introduce net_init_tap_one(). But it's inappropriate that
we close fd in net_init_tap_one(), we should lay it in the
caller, becuase some callers needn't to close it if we get
the fd by monitor_handle_fd_param().

On the other hand, in other exceptional branches fd isn't
closed, so that's incomplete anyway.

Signed-off-by: Gonglei <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
net/tap.c
This page took 0.026763 seconds and 4 git commands to generate.