summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2022-08-19 00:03:13 +0200
committerChristian Persch <chpe@src.gnome.org>2022-08-19 00:04:03 +0200
commit2ba682d59daf0f0de906301fecbbd2b9a7989a14 (patch)
treee1f05b338c30bd649e8d2525cbb1ac4dc300b803
parent6fa248b540c7e4f331828da3caba27eae850d101 (diff)
downloadvte-2ba682d59daf0f0de906301fecbbd2b9a7989a14.tar.gz
lib: Fix spawning on netbsd
Add netbsd to the platforms that can safely use sysconf(3) to close the file descriptors before exec, since according to netbsd's man:sigaction(2), sysconf(3) is async-signal-safe. Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/2574 (cherry picked from commit b4abc09b0950e2b1593782116b7fa9fc2e7ffba1)
-rw-r--r--src/missing.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/missing.cc b/src/missing.cc
index b5a0742e..c0afb6e4 100644
--- a/src/missing.cc
+++ b/src/missing.cc
@@ -119,7 +119,7 @@ getrlimit_NOFILE_max(void)
#endif /* HAVE_SYS_RESOURCE_H */
-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
/* Use sysconf() function provided by the system if it is known to be
* async-signal safe.
*/