Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > e8c0b673ea1b7e162bcac8e349d03cea > files > 26

ntp-4.2.2p1-15.el5_7.1.src.rpm

diff -up ntp-4.2.2p1/ntpd/ntpd.c.ulimit ntp-4.2.2p1/ntpd/ntpd.c
--- ntp-4.2.2p1/ntpd/ntpd.c.ulimit	2011-03-24 18:31:45.613575853 +0100
+++ ntp-4.2.2p1/ntpd/ntpd.c	2011-03-24 18:31:45.702558054 +0100
@@ -626,7 +626,7 @@ ntpdmain(
 	     * fail if we drop root privlege.  To be useful the value
 	     * has to be larger than the largest ntpd resident set size.
 	     */
-	    rl.rlim_cur = rl.rlim_max = 32*1024*1024;
+	    rl.rlim_cur = rl.rlim_max = 64*1024*1024;
 	    if (setrlimit(RLIMIT_MEMLOCK, &rl) == -1) {
 	    	msyslog(LOG_ERR, "Cannot set RLIMIT_MEMLOCK: %m");
 	    }