diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-15 19:25:47 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-15 19:25:47 -0700 |
| commit | 977d8ba0e9e19d857f79bc04c09a766b506e7927 (patch) | |
| tree | 1f913da998a8e994eda6712f0cbe0ea347f3b6b6 /src/rt/rust_kernel.cpp | |
| parent | e3d5b8a8d5c2009fe5abfc68d54cc6ba1f99baea (diff) | |
| download | rust-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.cpp | 6 |
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(); |
