mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-25 06:03:16 +00:00
Abort abruptly on failure on windows
Trying to shutdown cleanly results in wierd failures
This commit is contained in:
parent
e3d5b8a8d5
commit
977d8ba0e9
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user