stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abl...@apache.org
Subject svn commit: r579307 - /incubator/stdcxx/trunk/util/exec.cpp
Date Tue, 25 Sep 2007 16:29:28 GMT
Author: ablack
Date: Tue Sep 25 09:29:26 2007
New Revision: 579307

URL: http://svn.apache.org/viewvc?rev=579307&view=rev
Log:
2007-09-25  Andrew Black  <ablack@roguewave.com>
	STDCXX-440
	* exec.cpp (limit_process): Stop itteration over limits structure
	when name element is null, not limit element.  Old behavior
	incorrectly aborted loop when encountering the first limit that
	didn't need to be set.


Modified:
    incubator/stdcxx/trunk/util/exec.cpp

Modified: incubator/stdcxx/trunk/util/exec.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/util/exec.cpp?rev=579307&r1=579306&r2=579307&view=diff
==============================================================================
--- incubator/stdcxx/trunk/util/exec.cpp (original)
+++ incubator/stdcxx/trunk/util/exec.cpp Tue Sep 25 09:29:26 2007
@@ -717,7 +717,7 @@
         { 0, 0, 0 }
     };
 
-    for (size_t i = 0; limits [i].limit; ++i) {
+    for (size_t i = 0; limits [i].name; ++i) {
         struct rlimit local;
 
         if (!limits [i].limit)



Mime
View raw message