mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
Ports: Update patch's patches to use git patches
This commit is contained in:
parent
848c883bb6
commit
5b91e02dc9
3 changed files with 34 additions and 14 deletions
27
Ports/patch/patches/0001-Remove-oversized-dirfd-cache.patch
Normal file
27
Ports/patch/patches/0001-Remove-oversized-dirfd-cache.patch
Normal file
|
@ -0,0 +1,27 @@
|
|||
From 101002ce462efc69f8511bcb056eba1ca1d89d90 Mon Sep 17 00:00:00 2001
|
||||
From: Tim Schumacher <timschumi@gmx.de>
|
||||
Date: Wed, 10 Nov 2021 02:07:36 +0100
|
||||
Subject: [PATCH] Remove oversized dirfd cache
|
||||
|
||||
---
|
||||
src/safe.c | 4 +---
|
||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/safe.c b/src/safe.c
|
||||
index 5a7202f..562a791 100644
|
||||
--- a/src/safe.c
|
||||
+++ b/src/safe.c
|
||||
@@ -98,9 +98,7 @@ static void init_dirfd_cache (void)
|
||||
{
|
||||
struct rlimit nofile;
|
||||
|
||||
- max_cached_fds = 8;
|
||||
- if (getrlimit (RLIMIT_NOFILE, &nofile) == 0)
|
||||
- max_cached_fds = MAX (nofile.rlim_cur / 4, max_cached_fds);
|
||||
+ max_cached_fds = 64;
|
||||
|
||||
cached_dirfds = hash_initialize (max_cached_fds,
|
||||
NULL,
|
||||
--
|
||||
2.36.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue