diff options
Diffstat (limited to 'src/recite.rs')
-rw-r--r-- | src/recite.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/recite.rs b/src/recite.rs index bd72b67..1aa1a62 100644 --- a/src/recite.rs +++ b/src/recite.rs @@ -1,10 +1,11 @@ pub mod path; mod ps; -use crate::{ctask, task}; +use crate::{btask, ctask, task}; use core::fmt; use libc::{waitpid, WNOHANG}; use path::prefresh; use std::io::{self, Write}; +use std::os::unix::process::CommandExt; use std::path::Path; use std::process::{exit, Command, Stdio}; use std::sync::{Arc, Mutex}; @@ -125,7 +126,7 @@ impl Meter { out: &mut String, pids: &mut Arc<Mutex<Vec<i32>>>, ) -> Result<i32, io::Error> { - let child = task!(verse, out); + let child = btask!(verse, out); println!("[&] {}", child.id()); pids.lock().unwrap().push(child.id() as i32); |