Return an error code after fail under win32
This commit is contained in:
@@ -140,7 +140,7 @@ rust_kernel::fail() {
|
|||||||
// Runtime to terminate it in an unusual way" when trying to shutdown
|
// Runtime to terminate it in an unusual way" when trying to shutdown
|
||||||
// cleanly.
|
// cleanly.
|
||||||
#if defined(__WIN32__)
|
#if defined(__WIN32__)
|
||||||
exit(-1);
|
exit(1);
|
||||||
#endif
|
#endif
|
||||||
for(size_t i = 0; i < num_threads; ++i) {
|
for(size_t i = 0; i < num_threads; ++i) {
|
||||||
rust_scheduler *thread = threads[i];
|
rust_scheduler *thread = threads[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user