Skip to content

Commit

Permalink
test: use parking_lot::Mutex for FORK_MTX (#2372)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC authored Apr 14, 2024
1 parent b6c55ad commit ba66e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ 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.
pub static FORK_MTX: std::sync::Mutex<()> = std::sync::Mutex::new(());
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
/// working directory must grab it shared.
Expand Down

0 comments on commit ba66e13

Please sign in to comment.