[vte] lib: Use sysconf on macos to get the upper limit of number of FDs
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] lib: Use sysconf on macos to get the upper limit of number of FDs
- Date: Mon, 16 Nov 2020 19:38:44 +0000 (UTC)
commit efebf38e278b80ef4670dad87d749898cf244f88
Author: Matt Rose <mattrose folkwolf net>
Date: Mon Nov 16 20:38:04 2020 +0100
lib: Use sysconf on macos to get the upper limit of number of FDs
Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/296
src/missing.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/missing.cc b/src/missing.cc
index dda355e8..e6da31e9 100644
--- a/src/missing.cc
+++ b/src/missing.cc
@@ -113,7 +113,7 @@ getrlimit_NOFILE_max(void)
#endif /* HAVE_SYS_RESOURCE_H */
-#if defined(__FreeBSD__) || defined(__OpenBSD__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
/* Use sysconf() function provided by the system if it is known to be
* async-signal safe.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]