[vte/vte-0-70] lib: Fix spawning on netbsd



commit 2ba682d59daf0f0de906301fecbbd2b9a7989a14
Author: Christian Persch <chpe src gnome org>
Date:   Fri Aug 19 00:03:13 2022 +0200

    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)

 src/missing.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
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.
          */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]