projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
316797b
)
[mono] Avoid trying to fork to a debugger on tvos. (#67856)
author
Zoltan Varga
<vargaz@gmail.com>
Mon, 11 Apr 2022 21:20:21 +0000
(23:20 +0200)
committer
GitHub
<noreply@github.com>
Mon, 11 Apr 2022 21:20:21 +0000
(23:20 +0200)
src/mono/mono/mini/mini-posix.c
patch
|
blob
|
history
diff --git
a/src/mono/mono/mini/mini-posix.c
b/src/mono/mono/mini/mini-posix.c
index
78184e7
..
65e7aa9
100644
(file)
--- a/
src/mono/mono/mini/mini-posix.c
+++ b/
src/mono/mono/mini/mini-posix.c
@@
-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 */