diff options
author | Marcel Apfelbaum <marcel.a@redhat.com> | 2014-03-11 15:00:34 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-03-13 01:21:57 +0100 |
commit | f8762027a33e2f5d0915c56a904962b1481f75c1 (patch) | |
tree | 49b46d06869f74798a305c8a71f4444667edcc16 /migration-fd.c | |
parent | d2f69df746f06d785ffbf6cc9711f7df9d014e35 (diff) | |
download | qemu-f8762027a33e2f5d0915c56a904962b1481f75c1.zip |
libqtest: Fix possible deadlock in qtest initialization
'socket_accept' waits for QEMU to init its unix socket.
If QEMU encounters an error during command line parsing,
it can exit before initializing the communication channel.
Using a timeout for sockets fixes the issue.
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'migration-fd.c')
0 files changed, 0 insertions, 0 deletions