[mono] Avoid trying to fork to a debugger on tvos. (#67856)
authorZoltan Varga <vargaz@gmail.com>
Mon, 11 Apr 2022 21:20:21 +0000 (23:20 +0200)
committerGitHub <noreply@github.com>
Mon, 11 Apr 2022 21:20:21 +0000 (23:20 +0200)
src/mono/mono/mini/mini-posix.c

index 78184e7..65e7aa9 100644 (file)
@@ -811,7 +811,7 @@ dump_native_stacktrace (const char *signal, MonoContext *mctx)
                }
        }
 
-#if !defined(HOST_WIN32) && defined(HAVE_SYS_SYSCALL_H) && (defined(SYS_fork) || HAVE_FORK)
+#if !defined(HOST_WIN32) && defined(HAVE_SYS_SYSCALL_H) && ((!defined(HOST_DARWIN) && defined(SYS_fork)) || HAVE_FORK)
        pid_t crashed_pid = getpid ();
 
        pid_t pid = crashed_pid; /* init to some >0 value */