Skip to content

Commit 3c77121

Browse files
committed
---
yaml --- r: 3934 b: refs/heads/master c: 4738cf8 h: refs/heads/master v: v3
1 parent 90a7b90 commit 3c77121

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 827e3004851ff28f4394bf62d4a9fe29728ebe70
2+
refs/heads/master: 4738cf83b05dc02d1f7a364a6e901a1b5a18da20

trunk/src/rt/rust_scheduler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ rust_scheduler::fail() {
7272
name, this);
7373
I(this, rval == 0);
7474
rval = 1;
75+
exit(1);
7576
}
7677

7778
size_t

trunk/src/rt/rust_task.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ rust_task::fail() {
220220
backtrace();
221221
// Unblock the task so it can unwind.
222222
unblock();
223-
if (this == sched->root_task)
224-
sched->fail();
225223
if (supervisor) {
226224
DLOG(sched, task,
227225
"task %s @0x%" PRIxPTR
@@ -230,7 +228,8 @@ rust_task::fail() {
230228
supervisor->kill();
231229
}
232230
// FIXME: implement unwinding again.
233-
exit(1);
231+
if (this == sched->root_task)
232+
sched->fail();
234233
}
235234

236235
void

0 commit comments

Comments
 (0)