When using threads, and not waiting for all of the threads to join, I get a message "A thread exited while 3 threads were running." I'd like to suppress this warning. I realize it's best practice to join them, but that isn't an option in this case unfortunately. I just want to clean up logs that currently have tons of these warnings showing up all the time. Here is a simple app that creates this warning:
#!/usr/bin/perl
use threads;
my $thread1 = new threads(\&my_sub);
my $thread2 = new threads(\&my_sub);
sub my_sub {}