remove use of syscall(2) from mono. Thanks brynet@ for finding the

location in mini-posix.c.

ok brynet@, op@, robert@ (maintainer)
This commit is contained in:
thfr
2023-10-28 14:09:30 +00:00
parent 06438daf1d
commit e528a300ba
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ COMMENT= cross platform, open source .NET developement framework
V= 6.12.0.199
DISTNAME= mono-${V}
REVISION= 1
REVISION= 2
CATEGORIES= lang devel
@@ -0,0 +1,14 @@
use fork(2) instead of syscall (SYS_fork)
Index: mono/mini/mini-posix.c
--- mono/mini/mini-posix.c.orig
+++ mono/mini/mini-posix.c
@@ -940,7 +940,7 @@ fork_crash_safe (void)
#if defined(HOST_ANDROID)
/* SYS_fork is defined to be __NR_fork which is not defined in some ndk versions */
g_assert_not_reached ();
-#elif !defined(HOST_DARWIN) && defined(SYS_fork)
+#elif defined(__linux__) && defined(SYS_fork)
pid = (pid_t) syscall (SYS_fork);
#elif HAVE_FORK
pid = (pid_t) fork ();