about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_kernel.cpp')
-rw-r--r--src/rt/rust_kernel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp
index ceddcf5b1c9..02d15b31eb2 100644
--- a/src/rt/rust_kernel.cpp
+++ b/src/rt/rust_kernel.cpp
@@ -136,6 +136,12 @@ int rust_kernel::start_task_threads()
 
 void
 rust_kernel::fail() {
+    // FIXME: On windows we're getting "Application has requested the
+    // Runtime to terminate it in an unusual way" when trying to shutdown
+    // cleanly.
+#if defined(__WIN32__)
+    exit(-1);
+#endif
     for(size_t i = 0; i < num_threads; ++i) {
         rust_scheduler *thread = threads[i];
         thread->kill_all_tasks();