Subject: | tempdir variable not used in new |
as we can see in new the tempdir variable is not used.
sub new {
my ($c,$processes, $tempdir)=@_;
my $h={
max_proc => $processes,
processes => {},
in_child => 0,
parent_pid => $$,
};
# determine temporary directory for storing data structures
# add it to Parallel::ForkManager object so children can use it
# We don't let it clean up so it won't do it in the child process
# but we have our own DESTROY to do that.
$h->{tempdir} = File::Temp::tempdir(CLEANUP => 0);
return bless($h,ref($c)||$c);
};