diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-11-04 15:51:21 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-11-11 14:02:58 +0100 |
commit | a517e88baa9bef2b5c54a11d62b2b2ab2a5c4ab7 (patch) | |
tree | 1bc7bb584791935ae923b50779b7ea8c8458638b /qemu-thread-posix.c | |
parent | b32f6c28d5c753a8c667453f6300a2650bc52a47 (diff) |
qemu-nbd: move client to a thread
This avoids that qemu-nbd uses both forking and threads, which do
not behave well together.
qemu-nbd is already Unix only, and there is no qemu_thread_join,
so for now use pthreads.
Since the parent and child no longer have separate file descriptors,
we can open the NBD device before daemonizing, instead of checking
with access(2) and restricting the open to the client only.
Reported-by: Pierre Riteau <pierre.riteau@irisa.fr>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-thread-posix.c')
0 files changed, 0 insertions, 0 deletions