mirror of
https://github.com/ksherlock/ample.git
synced 2024-10-31 15:04:56 +00:00
vmnet helper -- don't assume vmnet_start_interface succeeded.
This commit is contained in:
parent
6ce2fbc2d8
commit
ee1da060a3
@ -264,8 +264,13 @@ void vm_startup(void) {
|
||||
}
|
||||
dispatch_semaphore_signal(sem);
|
||||
});
|
||||
if (!interface) {
|
||||
errx(1, "vmnet_start_interface failed");
|
||||
}
|
||||
|
||||
dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER);
|
||||
|
||||
|
||||
if (interface_status == VMNET_SUCCESS) {
|
||||
buffer_size = (interface_packet_size * 2 + 1023) & ~1023;
|
||||
buffer = (uint8_t *)malloc(buffer_size);
|
||||
|
Loading…
Reference in New Issue
Block a user