[vhffs-dev] [2209] the new way of reading vhffs.conf (forced lowercase) broke the setrlimit() feature of vhffscron

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 2209
Author:   gradator
Date:     2012-08-13 23:12:20 +0200 (Mon, 13 Aug 2012)
Log Message:
-----------
the new way of reading vhffs.conf (forced lowercase) broke the setrlimit() feature of vhffscron

Modified Paths:
--------------
    branches/vhffs-4.4/vhffs-cron/src/vhffscron.pl
    trunk/vhffs-cron/src/vhffscron.pl

Modified: branches/vhffs-4.4/vhffs-cron/src/vhffscron.pl
===================================================================
--- branches/vhffs-4.4/vhffs-cron/src/vhffscron.pl	2012-08-12 15:47:12 UTC (rev 2208)
+++ branches/vhffs-4.4/vhffs-cron/src/vhffscron.pl	2012-08-13 21:12:20 UTC (rev 2209)
@@ -289,7 +289,7 @@
 		foreach my $resource ( keys %{$limits} )  {
 			my ( $soft , $hard ) = ( $limits->{$resource} =~ /^\s*([\d\w]+)\s+([\d\w]+)\s*$/ );
 
-			$resource = $rlimits->{$resource};
+			$resource = $rlimits->{uc $resource};
 			$soft = eval $soft;   # we get a string, we have to convert it to the
 			$hard = eval $hard;   # integer constant if needed ( RLIM_INFINITY and such )
 

Modified: trunk/vhffs-cron/src/vhffscron.pl
===================================================================
--- trunk/vhffs-cron/src/vhffscron.pl	2012-08-12 15:47:12 UTC (rev 2208)
+++ trunk/vhffs-cron/src/vhffscron.pl	2012-08-13 21:12:20 UTC (rev 2209)
@@ -289,7 +289,7 @@
 		foreach my $resource ( keys %{$limits} )  {
 			my ( $soft , $hard ) = ( $limits->{$resource} =~ /^\s*([\d\w]+)\s+([\d\w]+)\s*$/ );
 
-			$resource = $rlimits->{$resource};
+			$resource = $rlimits->{uc $resource};
 			$soft = eval $soft;   # we get a string, we have to convert it to the
 			$hard = eval $hard;   # integer constant if needed ( RLIM_INFINITY and such )
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/