[Git][NTPsec/ntpsec][master] 2 commits: Ignore a failure to restore the RLIMIT_CORE resource limit.

Eric S. Raymond gitlab at mg.gitlab.com
Wed Sep 2 08:18:31 UTC 2020



Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
2ba8645e by William Cody Ardoin at 2020-09-01T18:40:57-07:00
Ignore a failure to restore the RLIMIT_CORE resource limit.

Linux containers don't allow RLIMIT_CORE to be set back to RLIM_INFINITY
if we set the limit to zero, even for root.  This is not a problem
outside the container.

Fixes #662

- - - - -
1f82b34c by James Browning at 2020-09-01T18:58:02-07:00
ntpd.c: update casting as suggested by @selsky in !1140

- - - - -


1 changed file:

- ntpd/ntpd.c


Changes:

=====================================
ntpd/ntpd.c
=====================================
@@ -759,7 +759,8 @@ main(
 	    struct rlimit rlim;
 	    rlim.rlim_max = rlim.rlim_cur = RLIM_INFINITY;
 	    if (setrlimit(RLIMIT_MEMLOCK, &rlim) < 0)
-		msyslog(LOG_WARNING, "INIT: setrlimit() failed: not locking into RAM");
+		msyslog(LOG_DEBUG, "INIT: setrlimit(RLIMIT_CORE, [%ju, %ju]) failed",
+			(uintmax_t)rlim.rlim_cur, (uintmax_t)rlim.rlim_max);
 	    else
 #endif
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/compare/0467d172f3ff9f346e05818cc5e510b73337dddf...1f82b34c570a5dfd2ffde560b915c3c77bb6640e

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/compare/0467d172f3ff9f346e05818cc5e510b73337dddf...1f82b34c570a5dfd2ffde560b915c3c77bb6640e
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20200902/e1f4563b/attachment.htm>


More information about the vc mailing list