qemu/backends
Paolo Bonzini 513b8c74c4 rng: initialize file descriptor to -1
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 <pbonzini@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Tested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2014-01-06 13:45:46 -05:00
..
baum.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
Makefile.objs QOM-ify the TPM support 2013-04-02 08:15:18 -05:00
msmouse.c qemu-char: don't issue CHR_EVENT_OPEN in a BH 2013-06-10 11:38:37 -05:00
rng-egd.c rng-egd: offset the point when repeatedly read from the buffer 2013-11-21 07:55:37 -08:00
rng-random.c rng: initialize file descriptor to -1 2014-01-06 13:45:46 -05:00
rng.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
tpm.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00