aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2025-06-26 02:44:21 +0000
committerNIIBE Yutaka <[email protected]>2025-06-26 02:44:21 +0000
commit6cb61bb9cb552c430cc3a466ee056df5ed5a06e1 (patch)
tree113393873b7795b0269b0ec21184b7b7717fe43f
parentspawn:posix: Add an improvement when closefrom is not available. (diff)
downloadlibgpg-error-master.tar.gz
libgpg-error-master.zip
spawn:posix: Use 1024 for arbitrary limit, following GPGME.HEADmaster
* src/spawn-posix.c (get_max_fds): Use 1024 (was: 256). -- GnuPG-bug-id: 7696 Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--src/spawn-posix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spawn-posix.c b/src/spawn-posix.c
index 61d486a..8b6f8ad 100644
--- a/src/spawn-posix.c
+++ b/src/spawn-posix.c
@@ -192,13 +192,13 @@ get_max_fds (int fallback_max_fds)
#endif
if (max_fds == -1)
- max_fds = 256; /* Arbitrary limit. */
+ max_fds = 1024; /* Arbitrary limit. */
/* AIX returns INT32_MAX instead of a proper value. We assume that
this is always an error and use an arbitrary limit. */
#ifdef INT32_MAX
if (max_fds == INT32_MAX)
- max_fds = 256;
+ max_fds = 1024;
#endif
return max_fds;