From c606270c9bdd7c7f768c0afc64bf31d31d1e72c9 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Fri, 28 Oct 2016 09:10:23 -0400 Subject: [threads] Fix suspend on watchos Because certain platform (such as WatchOS) do not support syscall abort, we need to ensure that it is supported before we call the `mono_threads_suspend_abort_syscall` function. --- mono/utils/mono-threads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mono/utils/mono-threads.c b/mono/utils/mono-threads.c index d0eedf683e9..a33bbf1d019 100644 --- a/mono/utils/mono-threads.c +++ b/mono/utils/mono-threads.c @@ -916,7 +916,7 @@ suspend_sync (MonoNativeThreadId tid, gboolean interrupt_kernel) } break; case AsyncSuspendBlocking: - if (interrupt_kernel) + if (interrupt_kernel && mono_threads_suspend_needs_abort_syscall ()) mono_threads_suspend_abort_syscall (info); break; -- cgit v1.2.3