Skip to content

Commit f7c327c

Browse files
committed
tests: clarify the meaning of the FORK_MTX
1 parent 889e861 commit f7c327c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ fn read_exact<Fd: AsFd>(f: Fd, buf: &mut [u8]) {
5858
}
5959

6060
/// Any test that creates child processes must grab this mutex, regardless
61-
/// of what it does with those children.
61+
/// of what it does with those children. It must hold the mutex until the
62+
/// child processes are waited upon.
6263
pub static FORK_MTX: Mutex<()> = Mutex::new(());
6364
/// Any test that changes the process's current working directory must grab
6465
/// the RwLock exclusively. Any process that cares about the current

0 commit comments

Comments
 (0)