]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
timesyncd: remove RLIMIT_NPROC
authorKay Sievers <kay@vrfy.org>
Fri, 31 Jul 2015 13:33:49 +0000 (15:33 +0200)
committerKay Sievers <kay@vrfy.org>
Fri, 31 Jul 2015 13:33:49 +0000 (15:33 +0200)
NSS plugins might create additional threads. Remove the limit, we cannot
really make any assumptions here.

src/timesync/timesyncd.c

index b030206948aac9f24f3ab6353ff83fe3354ab09c..7b4178c993e30106d2bdf5e1e34ca44d42841953 100644 (file)
@@ -113,10 +113,6 @@ int main(int argc, char *argv[]) {
         if (r < 0)
                 goto finish;
 
-        /* We need one process for ourselves, plus one thread for the asynchronous resolver */
-        if (setrlimit(RLIMIT_NPROC, &RLIMIT_MAKE_CONST(2)) < 0)
-                log_warning_errno(errno, "Failed to lower RLIMIT_NPROC to 2: %m");
-
         assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGTERM, SIGINT, -1) >= 0);
 
         r = manager_new(&m);