about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-08-15 19:25:47 -0700
committerBrian Anderson <banderson@mozilla.com>2011-08-15 19:25:47 -0700
commit977d8ba0e9e19d857f79bc04c09a766b506e7927 (patch)
tree1f913da998a8e994eda6712f0cbe0ea347f3b6b6 /src/rt/rust_kernel.cpp
parente3d5b8a8d5c2009fe5abfc68d54cc6ba1f99baea (diff)
downloadrust-977d8ba0e9e19d857f79bc04c09a766b506e7927.tar.gz
rust-977d8ba0e9e19d857f79bc04c09a766b506e7927.zip
Abort abruptly on failure on windows
Trying to shutdown cleanly results in wierd failures
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();