The file descriptor is never initialized to -1, which makes rng-random
close stdin if an object is created and immediately destroyed. If we
change it to -1, we also need to protect qemu_set_fd_handler from
receiving a bogus file descriptor.
Signed-off-by: Paolo Bonzini <firstname.lastname@example.org>
Reviewed-by: Igor Mammedov <email@example.com>
Tested-by: Igor Mammedov <firstname.lastname@example.org>
Signed-off-by: Luiz Capitulino <email@example.com>