diff options
| author | Paolo Bonzini | 2011-11-04 15:51:24 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2011-11-11 14:02:58 +0100 |
| commit | 802ddc375acabf06c0cb5a2716ca3573bc9ca89f (patch) | |
| tree | 6bcec5b805731e5013e8b0a205e92d04cd1757ee /block | |
| parent | qemu-nbd: fix socket creation race (diff) | |
| download | qemu-802ddc375acabf06c0cb5a2716ca3573bc9ca89f.tar.gz qemu-802ddc375acabf06c0cb5a2716ca3573bc9ca89f.tar.xz qemu-802ddc375acabf06c0cb5a2716ca3573bc9ca89f.zip | |
qemu-nbd: open the block device after starting the client thread
This is cleaner, because we do not need to close the block device when
there is an error opening /dev/nbdX. It was done this way only to
print errors before daemonizing.
At the same time, use atexit to ensure that the block device is closed
whenever we exit.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions
