From 977d8ba0e9e19d857f79bc04c09a766b506e7927 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 15 Aug 2011 19:25:47 -0700 Subject: [PATCH] Abort abruptly on failure on windows Trying to shutdown cleanly results in wierd failures --- src/rt/rust_kernel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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();