From ccdbc76f5af6ea63f750eb9d477358e9cd1bb910 Mon Sep 17 00:00:00 2001 From: Matthias Reitinger Date: Wed, 15 Nov 2017 03:31:50 +0100 Subject: [PATCH] Fix execute_command on Unix --- src/exec/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exec/command.rs b/src/exec/command.rs index 58c923c..1338f0d 100644 --- a/src/exec/command.rs +++ b/src/exec/command.rs @@ -85,7 +85,7 @@ pub fn execute_command(mut cmd: Command, out_perm: Arc>) { 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();