From: Michael Tremer Date: Mon, 27 Jan 2025 15:55:35 +0000 (+0000) Subject: pakfire: Don't mess with rlimit X-Git-Tag: 0.9.30~350 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=091379c01b946b42ecfe6ca532ad1f4228658125;p=pakfire.git pakfire: Don't mess with rlimit This should not be here, because we will run this in the Python module which is loaded by some other process. If anything we should only set this on processes that we control, but currently I have never run into this becoming a problem. Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/pakfire.c b/src/pakfire/pakfire.c index 4faecaf4..6a7d90f2 100644 --- a/src/pakfire/pakfire.c +++ b/src/pakfire/pakfire.c @@ -996,11 +996,6 @@ int pakfire_create(struct pakfire** pakfire, struct pakfire_ctx* ctx, if (*p->distro.slogan) DEBUG(p->ctx, " slogan = %s\n", p->distro.slogan); - // Bump RLIMIT_NOFILE to maximum - r = pakfire_rlimit_set(p->ctx, PAKFIRE_RLIMIT_NOFILE_MAX); - if (r) - goto ERROR; - // Return the pointer *pakfire = pakfire_ref(p);