Created
February 28, 2017 12:10
-
-
Save skarnecki/1f0857c1da6d3105a52e301c6435f692 to your computer and use it in GitHub Desktop.
Rust fork-bomb ~ defused
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[allow(unconditional_recursion)] | |
fn main(){ | |
thread(); | |
} | |
#[allow(unconditional_recursion)] | |
fn thread(){ | |
loop { | |
std::thread::spawn(thread); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment