Skip to content

Supervised and unlinked task failure modes do not work on Windows #4111

Closed
@fmartini

Description

@fmartini
fn main() {
    let res: Result<(), ()> = do task::try { fail; };
    io::println(res.is_err().to_str());
}

Result on Windows 7:

rust: task failed at 'explicit failure', test.rs:2
rust: domain main @0x2fe450 root task failed

Result on Ubuntu 12.04:

rust: task failed at 'explicit failure', test.rs:2
true

Tasks spawned with spawn_supervisedand spawn_unlinked always kill the root task on Windows when the task fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions