Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
fmartini opened this issue Dec 4, 2012 · 1 comment
Closed

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

fmartini opened this issue Dec 4, 2012 · 1 comment

Comments

@fmartini
Copy link

fmartini commented Dec 4, 2012

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.

@brson
Copy link
Contributor

brson commented Dec 4, 2012

This is a symptom of #908. Failure on windows does not work at all.

@brson brson closed this as completed Dec 4, 2012
RalfJung added a commit to RalfJung/rust that referenced this issue Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants