VirtualBox

Changeset 92140 in vbox


Ignore:
Timestamp:
Oct 29, 2021 9:30:22 AM (3 years ago)
Author:
vboxsync
Message:

VMNet: bugref:9932 Explicit handling of interface start timeout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvVMNet.m

    r92097 r92140  
    328328    xpc_object_t interface_desc;
    329329    dispatch_semaphore_t operation_done;
    330     __block vmnet_return_t vmnet_status = VMNET_SUCCESS;
     330    __block vmnet_return_t vmnet_status = VMNET_FAILURE;
    331331    __block size_t max_packet_size = 0;
    332332    //__block RTMAC MacAddress;
     
    400400        dispatch_semaphore_signal(operation_done);
    401401    });
    402     dispatch_semaphore_wait(operation_done, dispatch_time(DISPATCH_TIME_NOW, RT_NS_10SEC));
     402    if (dispatch_semaphore_wait(operation_done, dispatch_time(DISPATCH_TIME_NOW, RT_NS_10SEC)))
     403    {
     404        LogRel(("VMNet: Failed to start VMNET interface due to time out!\n"));
     405        return VMNET_FAILURE;
     406    }
    403407
    404408    if (vmnet_status != VMNET_SUCCESS)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette