From f7c327c2d017658a017e6f1f4cfd0647e48b4ef6 Mon Sep 17 00:00:00 2001 From: Jonathan Krebs Date: Mon, 22 Apr 2024 23:59:00 +0200 Subject: [PATCH] tests: clarify the meaning of the FORK_MTX --- test/test.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test.rs b/test/test.rs index 53a6af4b6c..f2e456b743 100644 --- a/test/test.rs +++ b/test/test.rs @@ -58,7 +58,8 @@ fn read_exact(f: Fd, buf: &mut [u8]) { } /// Any test that creates child processes must grab this mutex, regardless -/// of what it does with those children. +/// of what it does with those children. It must hold the mutex until the +/// child processes are waited upon. pub static FORK_MTX: Mutex<()> = Mutex::new(()); /// Any test that changes the process's current working directory must grab /// the RwLock exclusively. Any process that cares about the current