From dade04c4d5b86a2fb59a42e05352d27eec99ffd0 Mon Sep 17 00:00:00 2001 From: Erik Hollensbe Date: Mon, 30 Aug 2021 17:17:01 -0700 Subject: [PATCH] stuf Signed-off-by: Erik Hollensbe --- Cargo.toml | 2 +- src/lib.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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; }