Fix execute_command on Unix

This commit is contained in:
Matthias Reitinger 2017-11-15 03:31:50 +01:00 committed by David Peter
parent 355a171557
commit ccdbc76f5a

View file

@ -85,7 +85,7 @@ pub fn execute_command(mut cmd: Command, out_perm: Arc<Mutex<()>>) {
let _ = child.wait(); let _ = child.wait();
// Create a lock to ensure that this thread has exclusive access to writing. // 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. // And then write the outputs of the process until EOF is sent to each file.
let stdout = io::stdout(); let stdout = io::stdout();