diff options
author | NIIBE Yutaka <[email protected]> | 2025-06-26 02:44:21 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2025-06-26 02:44:21 +0000 |
commit | 6cb61bb9cb552c430cc3a466ee056df5ed5a06e1 (patch) | |
tree | 113393873b7795b0269b0ec21184b7b7717fe43f | |
parent | spawn:posix: Add an improvement when closefrom is not available. (diff) | |
download | libgpg-error-master.tar.gz libgpg-error-master.zip |
* 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.c | 4 |
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; |