diff options
author | Kay Sievers <kay@vrfy.org> | 2015-07-31 15:33:49 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2015-07-31 15:33:49 +0200 |
commit | b506d3141b97d0a3fbda461f4b8d9d64f46408d1 (patch) | |
tree | 54df68f935742095e44ca1489c2de1edb2a5a35a /src/timesync/timesyncd.c | |
parent | Merge pull request #803 from mixi/master (diff) | |
download | systemd-b506d3141b97d0a3fbda461f4b8d9d64f46408d1.tar.xz systemd-b506d3141b97d0a3fbda461f4b8d9d64f46408d1.zip |
timesyncd: remove RLIMIT_NPROC
NSS plugins might create additional threads. Remove the limit, we cannot
really make any assumptions here.
Diffstat (limited to 'src/timesync/timesyncd.c')
-rw-r--r-- | src/timesync/timesyncd.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/timesync/timesyncd.c b/src/timesync/timesyncd.c index b030206948..7b4178c993 100644 --- a/src/timesync/timesyncd.c +++ b/src/timesync/timesyncd.c @@ -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); |