Skip to content

io_error: "too many open files" on Mac #10442

@volodg

Description

@volodg

Source:

use std::rand;

fn main() {

    for _ in range(0u, 1000u) {

        do spawn {

            while (true) {

                println!("{}", rand::random::<uint>());
            }
        }
    }
}

Compilation and run: rustc main.rs; ./main

Result:

task '<unnamed>' failed at 'Unhandled condition: io_error: rt::io::IoError{kind: OtherIoError, desc: "too many open files", detail: None}

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