Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix SimpleDaemon to work on perl <5.14

  • Loading branch information...
commit f39a6272273c99807230bde8d14926bec677de2d 1 parent e209e87
@berekuk authored
Showing with 3 additions and 2 deletions.
  1. +1 −0  Changes
  2. +1 −1  dist.ini
  3. +1 −1  lib/Ubic/Service/SimpleDaemon.pm
View
1  Changes
@@ -1,6 +1,7 @@
Revision history for Ubic
{{$NEXT}}
+ * fix SimpleDaemon to work on perl <5.14
1.43_03 2012-06-20
* fix tests for systems which don't set LOGNAME or USERNAME
View
2  dist.ini
@@ -1,5 +1,5 @@
name = Ubic
-version = 1.43_03
+version = 1.43_04
author = Vyacheslav Matyukhin <mmcleric@yandex-team.ru>
license = Perl_5
copyright_holder = Yandex LLC
View
2  lib/Ubic/Service/SimpleDaemon.pm
@@ -200,7 +200,7 @@ sub start_impl {
}
if (defined $self->{ulimit}) {
$start_params->{start_hook} = sub {
- for my $name (keys $self->{ulimit}) {
+ for my $name (keys %{$self->{ulimit}}) {
my $value = $self->{ulimit}{$name};
my $result = BSD::Resource::setrlimit($name, $value, $value);
unless ($result) {
Please sign in to comment.
Something went wrong with that request. Please try again.