Skip to content

Commit

Permalink
fixed Windows bugs in tests (closes #447)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 18, 2013
1 parent d1d2c91 commit a2429ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,4 +1,7 @@

3.82 2013-01-18
- Fixed Windows bugs in tests. (kmx, sri)

3.81 2013-01-17
- Added modules Mojo::Server::Prefork and Mojolicious::Command::prefork.
- Added lookup method to Mojolicious::Routes.
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojo/Server/Prefork.pm
Expand Up @@ -7,7 +7,7 @@ use IO::Poll 'POLLIN';
use List::Util 'shuffle';
use POSIX 'WNOHANG';
use Scalar::Util 'weaken';
use Time::HiRes 'ualarm';
use Time::HiRes ();

has accepts => 1000;
has accept_interval => 0.025;
Expand Down Expand Up @@ -185,9 +185,9 @@ sub _spawn {
if ($_[1]) {
eval {
local $SIG{ALRM} = sub { die "alarm\n" };
my $old = ualarm $self->lock_timeout * 1000000;
my $old = Time::HiRes::ualarm $self->lock_timeout * 1000000;
$l = flock $handle, LOCK_EX;
ualarm $old;
Time::HiRes::ualarm $old;
};
if ($@) { $l = $@ eq "alarm\n" ? 0 : die($@) }
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -40,7 +40,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Rainbow';
our $VERSION = '3.81';
our $VERSION = '3.82';

sub AUTOLOAD {
my $self = shift;
Expand Down

0 comments on commit a2429ad

Please sign in to comment.