main: Don't panic() if blocking signals fails
This allows Cloud Hypervisor to be run under `perf` as some of the signals will already be blocked in the child process. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
bcdac10149
commit
34f220edcd
1 changed files with 3 additions and 1 deletions
|
|
@ -501,7 +501,9 @@ fn start_vmm(cmd_arguments: ArgMatches) -> Result<Option<String>, Error> {
|
|||
// installing handlers for, to make sure they only ever run on the
|
||||
// dedicated signal handling thread we'll start in a bit.
|
||||
for sig in vmm::vm::HANDLED_SIGNALS {
|
||||
block_signal(sig).unwrap();
|
||||
if let Err(e) = block_signal(sig) {
|
||||
eprintln!("Error blocking signals: {}", e);
|
||||
}
|
||||
}
|
||||
|
||||
event!("vmm", "starting");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue