mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Ports: Update patch's patches to use git patches
This commit is contained in:
parent
848c883bb6
commit
5b91e02dc9
Notes:
sideshowbarker
2024-07-17 10:47:53 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/5b91e02dc9 Pull-request: https://github.com/SerenityOS/serenity/pull/14055 Reviewed-by: https://github.com/danners Reviewed-by: https://github.com/timschumi
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
|
||||
|
7
Ports/patch/patches/ReadMe.md
Normal file
7
Ports/patch/patches/ReadMe.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Patches for patch on SerenityOS
|
||||
|
||||
## `0001-Remove-oversized-dirfd-cache.patch`
|
||||
|
||||
Remove oversized dirfd cache
|
||||
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
diff -ur a/src/safe.c b/src/safe.c
|
||||
--- a/src/safe.c 2018-02-03 13:41:49.000000000 +0100
|
||||
+++ b/src/safe.c 2021-11-10 02:05:04.152449983 +0100
|
||||
@@ -98,9 +98,7 @@
|
||||
{
|
||||
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,
|
Loading…
Reference in a new issue