Skip to content

Commit

Permalink
tests: clarify the meaning of the FORK_MTX
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJonny committed Apr 22, 2024
1 parent 889e861 commit f7c327c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ fn read_exact<Fd: AsFd>(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
Expand Down

0 comments on commit f7c327c

Please sign in to comment.