From b4abc09b0950e2b1593782116b7fa9fc2e7ffba1 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 19 Aug 2022 00:03:13 +0200 Subject: 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 --- 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. */ -- cgit v1.2.1