File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
branches/auto/src/libstd/rt Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
14
14
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
15
15
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
16
16
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17
- refs/heads/auto: bd3579877326fb78ac860f92fc69f4f60bb93012
17
+ refs/heads/auto: 92f60f4365beb7b0677b196b1650069bd88cb616
18
18
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
19
19
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
Original file line number Diff line number Diff line change @@ -530,13 +530,13 @@ impl Death {
530
530
531
531
/// Fails if a kill signal was received.
532
532
#[ inline]
533
- pub fn check_killed ( & self ) {
533
+ pub fn check_killed ( & self , already_failing : bool ) {
534
534
match self . kill_handle {
535
535
Some ( ref kill_handle) =>
536
536
// The task may be both unkillable and killed if it does some
537
537
// synchronization during unwinding or cleanup (for example,
538
538
// 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 ( ) {
540
540
fail ! ( KILLED_MSG ) ;
541
541
} ,
542
542
// This may happen during task death (see comments in collect_failure).
Original file line number Diff line number Diff line change @@ -600,7 +600,7 @@ impl Scheduler {
600
600
601
601
// Must happen after running the cleanup job (of course).
602
602
let task = Local :: unsafe_borrow :: < Task > ( ) ;
603
- ( * task) . death . check_killed ( ) ;
603
+ ( * task) . death . check_killed ( ( * task ) . unwinder . unwinding ) ;
604
604
}
605
605
}
606
606
You can’t perform that action at this time.
0 commit comments