diff --git a/Cargo.toml b/Cargo.toml index 61e2bdc..3d563c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "eggshell" -version = "0.1.1" +version = "0.1.2" edition = "2018" authors = ["Erik Hollensbe ", "Adam Ierymenko "] description = "Remove testing docker containers after this object goes away" diff --git a/src/lib.rs b/src/lib.rs index b179827..b8da55c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -63,6 +63,9 @@ lazy_static! { /// your tests. A wait function can be supplied to perform any final settling before terminating /// the test program. /// +/// In the event multiple signal handlers are spawned, N+1 handlers will simply run the wait hook +/// and return. Only the first execution is responsible for reaping all eggshells. +/// /// ``` /// use eggshell::supervise_signals; /// use std::time::Duration; @@ -83,6 +86,7 @@ where supervisor.replace(()); drop(supervisor) } else { + wait_hook.await; return; }