Skip to content

Commit a0208e3

Browse files
committed
Return an error code after fail under win32
1 parent db72bd9 commit a0208e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/rust_kernel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ rust_kernel::fail() {
140140
// Runtime to terminate it in an unusual way" when trying to shutdown
141141
// cleanly.
142142
#if defined(__WIN32__)
143-
exit(-1);
143+
exit(1);
144144
#endif
145145
for(size_t i = 0; i < num_threads; ++i) {
146146
rust_scheduler *thread = threads[i];

0 commit comments

Comments
 (0)