Fix problem on windows with dd

This commit is contained in:
ClementTsang 2020-01-02 00:31:34 -05:00
parent b22c07aba2
commit f6eb2d6e54
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/// This file is meant to house (OS specific) implementations on how to kill processes.
use crate::utils::error::{BottomError, Result};
use crate::utils::error::BottomError;
use std::process::Command;
// Copied from SO: https://stackoverflow.com/a/55231715
@ -32,7 +32,7 @@ impl Process {
}
/// Kills a process, given a PID.
pub fn kill_process_given_pid(pid: u32) -> Result<()> {
pub fn kill_process_given_pid(pid: u32) -> crate::utils::error::Result<()> {
if cfg!(target_os = "linux") {
// Linux
Command::new("kill").arg(pid.to_string()).output()?;