Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
NikVolf committed Jul 19, 2016
1 parent fcc6fc9 commit 39f7a33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipc/hypervisor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,13 @@ impl Hypervisor {

let executable_path = executable_path.to_str().unwrap();
let mut command = Command::new(&executable_path);
command.stderr(std::process::Stdio::inherit());

if let Some(ref cli_args) = binary_args.cli {
for arg in cli_args { command.arg(arg); }
}

command.stdin(std::process::Stdio::piped());
command.stderr(std::process::Stdio::inherit());
command.stdout(std::process::Stdio::inherit());

trace!(target: "hypervisor", "Spawn executable: {:?}", command);

Expand Down Expand Up @@ -181,6 +180,7 @@ impl Hypervisor {
}
}

/// Shutdown the ipc and all managed child processes
pub fn shutdown(&self, wait_time: Option<std::time::Duration>) {
if wait_time.is_some() { std::thread::sleep(wait_time.unwrap()) }

Expand Down
1 change: 1 addition & 0 deletions ipc/hypervisor/src/service.rs.in
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ impl HypervisorService {
})
}

/// Add the module to the check-list
pub fn add_module(&self, module_id: IpcModuleId) {
self.check_list.write().unwrap().insert(module_id, false);
}
Expand Down

0 comments on commit 39f7a33

Please sign in to comment.