]> git.lizzy.rs Git - rust.git/commit
Don't abort if the runtime is run twice.
authorAlex Crichton <alex@alexcrichton.com>
Sun, 6 Oct 2013 04:58:55 +0000 (21:58 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 9 Oct 2013 19:38:18 +0000 (12:38 -0700)
commit8fcf62b6385a5be4ef3a8e1bdb0f01ce907abd26
treefd23aa0117a06bc0cf5827b374744abe32506880
parentacf9783879dca0db0721c10ac79c9078f2dec425
Don't abort if the runtime is run twice.

This changes an `assert_once_ever!` assertion to just a plain old assertion
around an atomic boolean to ensure that one particular runtime doesn't attempt
to exit twice.

Closes #9739
src/libstd/macros.rs
src/libstd/rt/mod.rs
src/test/run-pass/rt-run-twice.rs [new file with mode: 0644]