diff options
author | Christian Persch <chpe@src.gnome.org> | 2022-08-19 00:03:13 +0200 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2022-08-19 00:03:13 +0200 |
commit | b4abc09b0950e2b1593782116b7fa9fc2e7ffba1 (patch) | |
tree | 038dd5964c21d53df99b6ce3231836cea2a7a1e0 | |
parent | 1b750a348afb4085786e86fe80ac73caad1b829a (diff) | |
download | vte-b4abc09b0950e2b1593782116b7fa9fc2e7ffba1.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
-rw-r--r-- | src/missing.cc | 2 |
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. */ |