mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-18 18:00:35 +01:00
Fix execute_command on Unix
This commit is contained in:
parent
355a171557
commit
ccdbc76f5a
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ pub fn execute_command(mut cmd: Command, out_perm: Arc<Mutex<()>>) {
|
|||
let _ = child.wait();
|
||||
|
||||
// Create a lock to ensure that this thread has exclusive access to writing.
|
||||
let _lock = self.out_perm.lock().unwrap();
|
||||
let _lock = out_perm.lock().unwrap();
|
||||
|
||||
// And then write the outputs of the process until EOF is sent to each file.
|
||||
let stdout = io::stdout();
|
||||
|
|
Loading…
Reference in a new issue