I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-02-27 20:56:07-08 by jdhedden in response to 10078
Re: CGI with threads throws error
Try joining the threads after you 'kill' them instead of detaching:
local $SIG{'KILL'} = sub { threads->exit(); }; .... sub kill_loose_threads { # Send signals first foreach my $thread (threads->list()) { $thread->kill('KILL'); } # Join up with the terminating threads foreach my $thread (threads->list()) { $thread->join(); } }
Also, add an explicit 'exit(0);' after the 'main();' call at the bottom of the script.
Direct Responses: 10100 | Write a response