Skip to content

Commit c570e8b

Browse files
committed
---
yaml --- r: 4706 b: refs/heads/master c: 977d8ba h: refs/heads/master v: v3
1 parent 4590bd5 commit c570e8b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: e3d5b8a8d5c2009fe5abfc68d54cc6ba1f99baea
2+
refs/heads/master: 977d8ba0e9e19d857f79bc04c09a766b506e7927

trunk/src/rt/rust_kernel.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ int rust_kernel::start_task_threads()
136136

137137
void
138138
rust_kernel::fail() {
139+
// FIXME: On windows we're getting "Application has requested the
140+
// Runtime to terminate it in an unusual way" when trying to shutdown
141+
// cleanly.
142+
#if defined(__WIN32__)
143+
exit(-1);
144+
#endif
139145
for(size_t i = 0; i < num_threads; ++i) {
140146
rust_scheduler *thread = threads[i];
141147
thread->kill_all_tasks();

0 commit comments

Comments
 (0)