* The vde_switch startup code was reading from the wrong filehandle,

so the startup synchronisation didn't work, causing spurious QEMU
  failures ("Device 'vde' could not be initialized").

svn path=/nixos/trunk/; revision=26055
This commit is contained in:
Eelco Dolstra 2011-02-22 10:41:11 +00:00
parent 228004604d
commit 158a60465f

View File

@ -38,9 +38,10 @@ foreach my $vlan (split / /, $ENV{VLANS} || "") {
}
close $stdoutW;
print $pty "version\n";
readline $pty or die "cannot start vde_switch";
readline $stdoutR or die "cannot start vde_switch";
$ENV{"QEMU_VDE_SOCKET_$vlan"} = $socket;
$vlans{$vlan} = $pty;
die unless -e "$socket/ctl";
}