about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-09-08 13:42:04 -0700
committerBrian Anderson <banderson@mozilla.com>2011-09-11 17:31:40 -0700
commit0ea55ffdc87cd65de707d2d947cb57084be950f7 (patch)
tree6a8b9c10df23f2cc0f75873640615bb60a37d6bf /src/rt/rust_kernel.cpp
parent6f6f36172b2e0cd86ffffd1d0ed2deb75972db72 (diff)
downloadrust-0ea55ffdc87cd65de707d2d947cb57084be950f7.tar.gz
rust-0ea55ffdc87cd65de707d2d947cb57084be950f7.zip
Use a unique exit status when the runtime fails normally
Check for it in run-fail tests
Diffstat (limited to 'src/rt/rust_kernel.cpp')
-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 54b1cc98d43..e5234b9d6f5 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(rval);
 #endif
     for(size_t i = 0; i < num_threads; ++i) {
         rust_scheduler *thread = threads[i];