mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 08:12:27 -04:00
bhyve: exit with EX_OSERR if init checkpoint or restore time failed
Reviewed by: corvink, markj MFC after: 1 week Sponsored by: vStack Differential Revision: https://reviews.freebsd.org/D38872
This commit is contained in:
parent
577ddca908
commit
d213429e42
1 changed files with 4 additions and 3 deletions
|
|
@ -1579,12 +1579,13 @@ main(int argc, char *argv[])
|
|||
/*
|
||||
* checkpointing thread for communication with bhyvectl
|
||||
*/
|
||||
if (init_checkpoint_thread(ctx) < 0)
|
||||
printf("Failed to start checkpoint thread!\r\n");
|
||||
if (init_checkpoint_thread(ctx) != 0)
|
||||
errx(EX_OSERR, "Failed to start checkpoint thread");
|
||||
|
||||
if (restore_file != NULL) {
|
||||
destroy_restore_state(&rstate);
|
||||
vm_restore_time(ctx);
|
||||
if (vm_restore_time(ctx) < 0)
|
||||
err(EX_OSERR, "Unable to restore time");
|
||||
|
||||
for (int i = 0; i < guest_ncpus; i++) {
|
||||
if (i == BSP)
|
||||
|
|
|
|||
Loading…
Reference in a new issue