about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-08-24 11:55:31 -0700
committerBrian Anderson <banderson@mozilla.com>2011-08-24 12:03:07 -0700
commita0208e3899689fc74298aa680d5fbaa769b37edc (patch)
tree9eca1e720f3feca2909094bafbcdb1da53b966ea
parentdb72bd90f5f1405308b823f71ea9b5633860979c (diff)
downloadrust-a0208e3899689fc74298aa680d5fbaa769b37edc.tar.gz
rust-a0208e3899689fc74298aa680d5fbaa769b37edc.zip
Return an error code after fail under win32
-rw-r--r--src/rt/rust_kernel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp
index 9899939da02..54b1cc98d43 100644
--- a/src/rt/rust_kernel.cpp
+++ b/src/rt/rust_kernel.cpp
@@ -140,7 +140,7 @@ rust_kernel::fail() {
     // Runtime to terminate it in an unusual way" when trying to shutdown
     // cleanly.
 #if defined(__WIN32__)
-    exit(-1);
+    exit(1);
 #endif
     for(size_t i = 0; i < num_threads; ++i) {
         rust_scheduler *thread = threads[i];