mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +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