mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 03:12:27 +00:00
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
@ -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…
x
Reference in New Issue
Block a user