mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
* Hm, Perl threads and lexical closures don't interact in the way
you'd expect... svn path=/nixos/trunk/; revision=19214
This commit is contained in:
parent
9e98910a72
commit
ff86799d42
@ -87,9 +87,10 @@ sub start {
|
||||
|
||||
close $write;
|
||||
|
||||
threads->create(\&processQemuOutput)->detach;
|
||||
threads->create(\&processQemuOutput, $self, $read)->detach;
|
||||
|
||||
sub processQemuOutput {
|
||||
my ($self, $read) = @_;
|
||||
$/ = "\r\n";
|
||||
while (<$read>) {
|
||||
chomp;
|
||||
|
Loading…
Reference in New Issue
Block a user