Skip to content

Commit feeaf2c

Browse files
committed
---
yaml --- r: 69611 b: refs/heads/auto c: 92f60f4 h: refs/heads/master i: 69609: 4accbce 69607: 51a54f6 v: v3
1 parent 2c08d85 commit feeaf2c

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
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: bd3579877326fb78ac860f92fc69f4f60bb93012
17+
refs/heads/auto: 92f60f4365beb7b0677b196b1650069bd88cb616
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/libstd/rt/kill.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,13 +530,13 @@ impl Death {
530530

531531
/// Fails if a kill signal was received.
532532
#[inline]
533-
pub fn check_killed(&self) {
533+
pub fn check_killed(&self, already_failing: bool) {
534534
match self.kill_handle {
535535
Some(ref kill_handle) =>
536536
// The task may be both unkillable and killed if it does some
537537
// synchronization during unwinding or cleanup (for example,
538538
// sending on a notify port). In that case failing won't help.
539-
if self.unkillable == 0 && kill_handle.killed() {
539+
if self.unkillable == 0 && (!already_failing) && kill_handle.killed() {
540540
fail!(KILLED_MSG);
541541
},
542542
// This may happen during task death (see comments in collect_failure).

branches/auto/src/libstd/rt/sched.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ impl Scheduler {
600600

601601
// Must happen after running the cleanup job (of course).
602602
let task = Local::unsafe_borrow::<Task>();
603-
(*task).death.check_killed();
603+
(*task).death.check_killed((*task).unwinder.unwinding);
604604
}
605605
}
606606

0 commit comments

Comments
 (0)