Subject: | ithreads not detected due to a typo |
Date: | Sat, 02 Feb 2008 19:37:24 +0100 |
To: | bug-Net-Daemon [...] rt.cpan.org |
From: | Matej Vela <Matej.Vela [...] carnet.hr> |
Net::Daemon 0.43 doesn't detect ithreads because it checks for
'thread' instead of 'threads':
--- lib/Net/Daemon.pm~
+++ lib/Net/Daemon.pm
@@ -254,7 +254,7 @@
if ($self->{'childs'}) {
$self->{'mode'} = 'single';
} elsif (!defined($self->{'mode'})) {
- if (eval { require thread }) {
+ if (eval { require threads }) {
$self->{'mode'} = 'ithreads';
} elsif (eval { require Thread }) {
$self->{'mode'} = 'threads';
Thanks,
Matej