Welcome to the Monastery | |
PerlMonks |
detached threads still warnby pryrt (Abbot) |
on Oct 07, 2016 at 15:36 UTC ( [id://1173490]=perlquestion: print w/replies, xml ) | Need Help?? |
pryrt has asked for the wisdom of the Perl Monks concerning the following question: So, I started playing around with threads, using Re: buffering zipped pipes as an example. I got something working on my Windows machine, then tried it out on the ancient linux box (perl 5.8.5)... and got the dreaded "A thread exited while 2 threads were running." I double-checked to make sure that the linux box's perldoc threads claimed support for ->detach, and the WARNINGS section suggested joining to remove the error. I thought ->detach was supposed to make it automatically clean up such stuff. I tried no warnings 'threads'; or even no warnings;, just to see if I could make the warning go away, but it stuck around. Given the details (below), how can I get around this warning? Can I install a new local version of threads on the linux machine (I have cpan set up for local library installs), or is threads too core to be able to update with cpan? Or should I just switch to not using ->detach, and do manual cleanup using ->join? tl;dr details follow... windows
linux
Back to
Seekers of Perl Wisdom
|
|